コード例 #1
0
 /**
  * @test
  */
 public function setSiteSetsTheSiteTheDomainIsPointingTo()
 {
     $mockSite = $this->getMock('TYPO3\\Neos\\Domain\\Model\\Site', array(), array(), '', false);
     $domain = new \TYPO3\Neos\Domain\Model\Domain();
     $domain->setSite($mockSite);
     $this->assertSame($mockSite, $domain->getSite());
 }
コード例 #2
0
 /**
  * @test
  */
 public function setSiteSetsTheSiteTheDomainIsPointingTo()
 {
     $mockSite = $this->getMockBuilder('TYPO3\\Neos\\Domain\\Model\\Site')->disableOriginalConstructor()->getMock();
     $domain = new \TYPO3\Neos\Domain\Model\Domain();
     $domain->setSite($mockSite);
     $this->assertSame($mockSite, $domain->getSite());
 }