Skip to content

Commit

Permalink
test: use more specific assert method
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jan 6, 2022
1 parent dbd2f14 commit 7a4f4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/CommonFunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ public function testCspStyleNonce()
$config = config('App');
$config->CSPEnabled = true;

$this->assertStringContainsString('nonce="', csp_style_nonce());
$this->assertStringStartsWith('nonce="', csp_style_nonce());
}

public function testCspScriptNonce()
Expand All @@ -569,6 +569,6 @@ public function testCspScriptNonce()
$config = config('App');
$config->CSPEnabled = true;

$this->assertStringContainsString('nonce="', csp_script_nonce());
$this->assertStringStartsWith('nonce="', csp_script_nonce());
}
}

0 comments on commit 7a4f4e4

Please sign in to comment.