eZ\Publish\Core\Persistence\Legacy\Tests\Content\Section\SectionHandlerTest::testPoliciesCount PHP Method

testPoliciesCount() public method

public testPoliciesCount ( )
    public function testPoliciesCount()
    {
        $handler = $this->getSectionHandler();
        $gatewayMock = $this->getGatewayMock();
        $gatewayMock->expects($this->once())->method('countPoliciesUsingSection')->with($this->equalTo(1))->will($this->returnValue(7));
        $result = $handler->policiesCount(1);
    }