Skip to content

Commit

Permalink
Merge pull request #62 from cultuurnet/parameter_has_media_objects
Browse files Browse the repository at this point in the history
Parameter has media objects
  • Loading branch information
LucWollants committed Mar 15, 2022
2 parents dc30d03 + 4d002c7 commit e1fa9d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Parameter/MediaObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

final class MediaObject extends AbstractParameter
{
public function __construct(bool $hasMediaObject)
public function __construct(bool $hasMediaObjects)
{
$this->value = $hasMediaObject;
$this->key = 'hasMediaObject';
$this->value = $hasMediaObjects;
$this->key = 'hasMediaObjects';
}
}
2 changes: 1 addition & 1 deletion test/Parameter/MediaObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function testConstructor(): void
$key = $mediaObject->getKey();
$value = $mediaObject->getValue();

$this->assertEquals('hasMediaObject', $key);
$this->assertEquals('hasMediaObjects', $key);
$this->assertTrue($value);
}
}

0 comments on commit e1fa9d4

Please sign in to comment.