Skip to content

Commit

Permalink
chore: update assertContainsString name
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvroroy committed Feb 11, 2024
1 parent 6d898db commit 819a981
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class TestCase extends OrchestraTestCase
{
public static function assertStringContainsString(string $needle, string $haystack, string $message = ''): void
public static function assertContainsString(string $needle, string $haystack, string $message = ''): void
{
$constraint = new StringContains($needle, false);

Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/BladeRouteGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function can_resolve_generator_from_container()
{
$generator = app(BladeRouteGenerator::class);

$this->assertStringContainsString('"routes":[]', $generator->generate());
$this->assertContainsString('"routes":[]', $generator->generate());
}

/** @test */
Expand Down Expand Up @@ -73,7 +73,7 @@ public function can_generate_routes_for_default_domain()
],
];

$this->assertStringContainsString(json_encode($expected), (new BladeRouteGenerator)->generate());
$this->assertContainsString(json_encode($expected), (new BladeRouteGenerator)->generate());
}

/** @test */
Expand All @@ -94,7 +94,7 @@ public function can_generate_routes_for_custom_domain()
],
];

$this->assertStringContainsString(json_encode($expected), (new BladeRouteGenerator)->generate());
$this->assertContainsString(json_encode($expected), (new BladeRouteGenerator)->generate());
}

/** @test */
Expand Down Expand Up @@ -132,7 +132,7 @@ public function can_generate_routes_for_given_group_or_groups()
/** @test */
public function can_set_csp_nonce()
{
$this->assertStringContainsString(
$this->assertContainsString(
'<script type="text/javascript" nonce="supercalifragilisticexpialidocious">',
(new BladeRouteGenerator)->generate(false, 'supercalifragilisticexpialidocious')
);
Expand Down

0 comments on commit 819a981

Please sign in to comment.