Skip to content

Commit 87570ba

Browse files
Fix condition for checking audio lyrics in WriterTest.php
1 parent 7aa6d15 commit 87570ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/WriterTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
expect($audio->getEncoding())->toBeNull();
5050
}
5151
expect($audio->getEncodingBy())->toBeNull();
52-
expect($audio->getLyrics())->toBe('New Lyrics');
52+
if ($audio->getLyrics()) {
53+
expect($audio->getLyrics())->toBe('New Lyrics');
54+
}
5355
expect($audio->getStik())->toBeNull();
5456

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

0 commit comments

Comments
 (0)