eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\UpdateHandler\DoctrineDatabaseTest::testUpdateContentObjects PHP Method

testUpdateContentObjects() public method

    public function testUpdateContentObjects()
    {
        $handler = $this->getUpdateHandler();
        $updaterMock = $this->getContentUpdaterMock();
        $updaterMock->expects($this->once())->method('determineActions')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Type'), $this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Type'))->will($this->returnValue(array()));
        $updaterMock->expects($this->once())->method('applyUpdates')->with($this->equalTo(23), $this->equalTo(array()));
        $types = $this->getTypeFixtures();
        $handler->updateContentObjects($types['from'], $types['to']);
    }