/** * @test * @group assetrepo */ public function should_return_10_assets_of_klimtoren() { $klimtoren = $this->getKlimtoren(); $assets = $this->assetRepo->all($klimtoren); $this->assertCount(10, $assets); $this->assertInstanceOf('Bakgat\\Notos\\Domain\\Model\\Resource\\Asset', $assets[0]); }
public function all($orgId) { $organization = $this->checkOrganizationExists($orgId); $assets = $this->assetRepo->all($organization); return $assets; }