eZ\Publish\Core\Persistence\Legacy\Tests\Content\Section\SectionHandlerTest::testDelete PHP Метод

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

public testDelete ( )
    public function testDelete()
    {
        $handler = $this->getSectionHandler();
        $gatewayMock = $this->getGatewayMock();
        $gatewayMock->expects($this->once())->method('countContentObjectsInSection')->with($this->equalTo(23))->will($this->returnValue(0));
        $gatewayMock->expects($this->once())->method('deleteSection')->with($this->equalTo(23));
        $result = $handler->delete(23);
    }