Neos\ContentRepository\Tests\Unit\Domain\Model\NodeDataTest::matchesWorkspaceAndDimensionsWithDifferentWorkspaceReturnsFalse PHP Метод

matchesWorkspaceAndDimensionsWithDifferentWorkspaceReturnsFalse() публичный Метод

    public function matchesWorkspaceAndDimensionsWithDifferentWorkspaceReturnsFalse()
    {
        $this->mockWorkspace->expects($this->any())->method('getName')->will($this->returnValue('live'));
        /** @var Workspace|\PHPUnit_Framework_MockObject_MockObject $otherWorkspace */
        $otherWorkspace = $this->getMockBuilder(Workspace::class)->disableOriginalConstructor()->getMock();
        $otherWorkspace->expects($this->any())->method('getName')->will($this->returnValue('other'));
        $result = $this->nodeData->matchesWorkspaceAndDimensions($otherWorkspace, null);
        $this->assertFalse($result);
    }
NodeDataTest