Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick477 committed Jul 6, 2018
1 parent 90e5581 commit 0e5f568
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resolver/MediaProviderResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(ServiceRegistryInterface $providerRegistry)
public function resolveProvider(MediaInterface $media): ProviderInterface
{
/** @var ProviderInterface $provider */
$provider = $this->providerRegistry->get($media->getFileType());
$provider = $this->providerRegistry->get($media->getType());

return $provider;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/Setup/MediaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private function createMedia(
$media->setCurrentLocale('en_US');
$media->setName($name);
$media->setDescription($description);
$media->setFileType($fileType);
$media->setType($fileType);

return $media;
}
Expand Down

0 comments on commit 0e5f568

Please sign in to comment.