eZ\Publish\Core\Persistence\Cache\Tests\SectionHandlerTest::testAssign PHP Метод

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

public testAssign ( )
    public function testAssign()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $this->cacheMock->expects($this->at(0))->method('clear')->with('content', 44)->will($this->returnValue(null));
        $this->cacheMock->expects($this->at(1))->method('clear')->with('content', 'info', 44)->will($this->returnValue(null));
        $innerHandler = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Section\\Handler');
        $this->persistenceHandlerMock->expects($this->once())->method('sectionHandler')->will($this->returnValue($innerHandler));
        $innerHandler->expects($this->once())->method('assign')->with(33, 44)->will($this->returnValue(null));
        $handler = $this->persistenceCacheHandler->sectionHandler();
        $handler->assign(33, 44);
    }