/** * Returns the number of objects which are in this state. * * @param \eZ\Publish\API\Repository\Values\ObjectState\ObjectState $objectState * * @return int */ public function getContentCount(APIObjectState $objectState) { return $this->objectStateHandler->getContentCount($objectState->id); }
/** * @covers \eZ\Publish\Core\Persistence\InMemory\ObjectStateHandler::getContentCount */ public function testGetContentCount() { $count = $this->handler->getContentCount(1); // 9 is the count of objects in test fixtures as of writing $this->assertGreaterThanOrEqual(9, $count); }