/** * @test * @group websitesservice */ public function should_throw_err_when_website_of_url_not_found() { $this->setExpectedException('Bakgat\\Notos\\Domain\\Model\\Location\\Exceptions\\WebsiteNotFoundException'); $url_website = new URL('www.website1.be'); $this->websitesRepo->shouldReceive('websiteOfURL')->with($url_website)->andReturnNull(); $result = $this->websitesService->websiteOfURL($url_website); }