/** * @test * @group domainname */ public function should_return_false_if_not_unique() { $this->orgRepo->shouldReceive('organizationOfDomain')->andReturn(['id' => 1]); $this->assertFalse($this->spec->isSatisfiedBy(new DomainName('not_unique.be'))); }
/** * @test * @group url */ public function should_return_false_if_not_unique() { $this->webRepo->shouldReceive('websiteOfURL')->andReturn(['id' => 1]); $this->assertFalse($this->spec->isSatisfiedBy(new URL('www.non_unique.be'))); }