/** * @test * @group assetsmanager */ public function should_throw_org_not_found_on_all() { $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->all($orgId); }
public function index($orgId) { $assets = $this->assetsManager->all($orgId); return $this->jsonResponse($assets); }