eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\ContentUpdaterTest::testApplyUpdates PHP Method

testApplyUpdates() public method

public testApplyUpdates ( )
    public function testApplyUpdates()
    {
        $updater = $this->getContentUpdater();
        $actionA = $this->getMockForAbstractClass('\\eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\ContentUpdater\\Action', array(), '', false);
        $actionA->expects($this->at(0))->method('apply')->with(11);
        $actionA->expects($this->at(1))->method('apply')->with(22);
        $actionB = $this->getMockForAbstractClass('\\eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\ContentUpdater\\Action', array(), '', false);
        $actionB->expects($this->at(0))->method('apply')->with(11);
        $actionB->expects($this->at(1))->method('apply')->with(22);
        $actions = array($actionA, $actionB);
        $this->getContentGatewayMock()->expects($this->once())->method('getContentIdsByContentTypeId')->with(23)->will($this->returnValue(array(11, 22)));
        $updater->applyUpdates(23, $actions);
    }