Skip to content

Commit

Permalink
Use assertEmpty in unit tests to check if there's no preview version
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkleiner committed Jul 3, 2024
1 parent 436ae9d commit d5a2c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/PHPUnit/Unit/VersionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private function assertNotPreviewVersion($versionNumber)
private function assertNextVersionIsEmpty($versionNumber)
{
$nextVersionNumber = $this->version->nextPreviewVersion($versionNumber);
$this->assertStringEqualsStringIgnoringLineEndings('', $nextVersionNumber);
$this->assertEmpty($nextVersionNumber);
}

private function assertNextVersionExists($versionNumber)
Expand Down

0 comments on commit d5a2c7e

Please sign in to comment.