Skip to content

Commit

Permalink
fix: remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland committed Feb 23, 2025
1 parent c3e7ab2 commit ffdf98e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/Unit/Rules/ValidUserIdentifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,4 @@ public function testItFailsWithInvalidUlidCharacters(): void
$validator->errors()->first('username')
);
}

public function testItFailsWithInvalidUlidFormat(): void
{
$data = ['username' => '01H9XY7HSB10SCDZ6PZ6T7YQ4!'];

$validator = Validator::make($data, [
'username' => [new ValidUserIdentifier()],
]);

$this->assertTrue($validator->fails());
$this->assertEquals(
'The Username must be a valid ULID.',
$validator->errors()->first('username')
);
}
}

0 comments on commit ffdf98e

Please sign in to comment.