File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 44
55class TrailingSlashUrlGeneratorTest extends TestCase
66{
7- public function setUp (): void
8- {
9- parent ::setUp ();
10- }
11-
127 /** @test */
13- public function if_configuration_activator_is_enabled_url_ends_with_trailing_slash ()
8+ public function url_ends_with_trailing_slash ()
149 {
1510 $ this ->assertTrue (substr (url ('profile ' ), -1 ) === '/ ' );
11+ $ this ->assertStringEndsWith ('/ ' , url ('profile ' ));
1612 }
1713
1814 /** @test */
19- public function if_configuration_activator_is_disabled_url_ends_with_no_trailing_slash ()
15+ public function url_does_not_end_with_trailing_slash_when_disabled ()
2016 {
2117 config ()->set ('laravel-trailing-slash.active ' , false );
22- $ this ->assertFalse ( substr ( url ( ' profile ' ), - 1 ) === ' / ' );
18+ $ this ->assertStringEndsNotWith ( ' / ' , url ( ' profile ' ) );
2319 }
2420}
You can’t perform that action at this time.
0 commit comments