Skip to content

Commit

Permalink
Fix condition for checking audio lyrics in WriterTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere committed Feb 4, 2024
1 parent 7aa6d15 commit 87570ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/WriterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
expect($audio->getEncoding())->toBeNull();
}
expect($audio->getEncodingBy())->toBeNull();
expect($audio->getLyrics())->toBe('New Lyrics');
if ($audio->getLyrics()) {
expect($audio->getLyrics())->toBe('New Lyrics');
}
expect($audio->getStik())->toBeNull();

if ($audio->getFormat() !== AudioFormatEnum::mp3) {
Expand Down

0 comments on commit 87570ba

Please sign in to comment.