Skip to content

Commit 3fdbc26

Browse files
committed
Fix tests
1 parent a712da2 commit 3fdbc26

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/TrailingSlashUrlGeneratorTest.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@
44

55
class 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
}

0 commit comments

Comments
 (0)