コード例 #1
0
 /**
  * @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()));
 }
コード例 #2
0
ファイル: AssetsManager.php プロジェクト: bakgat/notos
 public function assetsOfMimePart($orgId, $mime_part)
 {
     $organization = $this->checkOrganizationExists($orgId);
     $assets = $this->assetRepo->assetsOfMime($organization, $mime_part);
     return $assets;
 }