/**
  * @test
  * @group assetrepo
  */
 public function should_return_asset_of_guid()
 {
     $klimtoren = $this->getKlimtoren();
     $assets = $this->assetRepo->assetsOfMime($klimtoren, 'image/jpeg');
     $tmp = $assets[0];
     $guid = $tmp->guid();
     $this->em->clear();
     $asset = $this->assetRepo->assetOfGuid($guid);
     $this->assertInstanceOf('Bakgat\\Notos\\Domain\\Model\\Resource\\Asset', $asset);
     $this->assertTrue($guid->equals($asset->guid()));
 }
Esempio n. 2
0
 public function assetsOfMimePart($orgId, $mime_part)
 {
     $organization = $this->checkOrganizationExists($orgId);
     $assets = $this->assetRepo->assetsOfMime($organization, $mime_part);
     return $assets;
 }