Skip to content

Commit

Permalink
Update WriterMp3Test.php to add test for updating tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere committed Oct 3, 2024
1 parent 2cfc955 commit e01c977
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/WriterMp3Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,15 @@
expect($audio->getLanguage())->toBe('en');
expect($audio->getCopyright())->toBe('New Copyright');
});

it('can update tag', function () {
$audio = Audio::read(MP3_WRITER);
testMp3Writer($audio);

$audio->write()
->tag('title', 'New Title')
->save();

$audio = Audio::read(MP3_WRITER);
expect($audio->getTitle())->toBe('New Title');
});

0 comments on commit e01c977

Please sign in to comment.