Skip to content

Commit

Permalink
Avoid confusion when a test failure occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 16, 2024
1 parent ad8342e commit f968b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/Services/KeyGeneratorServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function testStringIsRegisteredRoute(): void
public function testStringIsPublicPath(): void
{
$fileSystem = new \Illuminate\Filesystem\Filesystem;
$value = fake()->word();
$value = 'zzz'.fake()->word();

$fileSystem->makeDirectory(public_path($value));
$this->assertFalse($this->keyGenerator->verify($value));
Expand All @@ -136,7 +136,7 @@ public function testReservedActiveKeyword()
);

// Test case 2: Some reserved keywords already in use
$usedKeyWord = fake()->word();
$usedKeyWord = 'zzz'.fake()->word();
Url::factory()->create(['keyword' => $usedKeyWord]);

$fileSystem->makeDirectory(public_path($usedKeyWord));
Expand Down

0 comments on commit f968b63

Please sign in to comment.