/** * @test * @group websitesrepo */ public function should_return_null_when_website_not_found_with_url() { $url = new URL('foo.be'); $site = $this->websiteRepo->websiteOfURL($url); $this->assertNull($site); }
/** * Check if the website exists in datastore * * @param URL $url * @return Website */ public function checkURL(URL $url) { $website = $this->websitesRepository->websiteOfURL($url); return $website; }