Ejemplo n.º 1
0
 /**
  * @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')));
 }
Ejemplo n.º 2
0
 /**
  * @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')));
 }