/** * @test * @group assetsmanager */ public function should_throw_org_not_found_on_assets_of_type() { $this->setExpectedException('Bakgat\\Notos\\Domain\\Model\\Identity\\Exceptions\\OrganizationNotFoundException'); $orgId = 999999; $mime_part = 'image'; $this->orgRepo->shouldReceive('organizationOfId')->with($orgId)->andReturn(null); $result = $this->assetsManager->assetsOfMimePart($orgId, $mime_part, null); }
public function ofMime($orgId, $mime) { $assets = $this->assetsManager->assetsOfMimePart($orgId, $mime); return $this->jsonResponse($assets); }