Skip to content

Commit

Permalink
fix: Remove unused const, fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomiejmarszal committed Jun 14, 2024
1 parent 638a9a8 commit dbcd502
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions model/classes/Copier/AssetMetadataCopier.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@

class AssetMetadataCopier implements InstanceMetadataCopierInterface
{
/**
* Base filename for the asset (i.e. 123456789abcdef123456.mp4)
*/
private const PROPERTY_LINK = TaoMediaOntology::PROPERTY_LINK;

/**
* MD5 hash of the file contents
*/
Expand Down
3 changes: 1 addition & 2 deletions test/unit/model/classes/Copier/AssetMetadataCopierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,11 @@ function (core_kernel_classes_Property $p, array $opts) {
);

$this->target
->expects($this->exactly(3))
->expects($this->exactly(2))
->method('setPropertyValue')
->withConsecutive(
[$this->propertyMD5, 'c38cd6d9c873bf072d9753d730f87ce'],
[$this->propertyMime, 'video/mp4'],
[$this->propertyLink, '123456789abcdef123456.mp4']
);

$this->target
Expand Down

0 comments on commit dbcd502

Please sign in to comment.