/** * @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()); }
/** * @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()); }