eZ\Publish\Core\Limitation\Tests\ContentTypeLimitationTypeTest::testGetCriterionSingleValue PHP Method

testGetCriterionSingleValue() public method

public testGetCriterionSingleValue ( ContentTypeLimitationType $limitationType )
$limitationType eZ\Publish\Core\Limitation\ContentTypeLimitationType
    public function testGetCriterionSingleValue(ContentTypeLimitationType $limitationType)
    {
        $criterion = $limitationType->getCriterion(new ContentTypeLimitation(array('limitationValues' => array(9))), $this->getUserMock());
        self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion\\ContentTypeId', $criterion);
        self::assertInternalType('array', $criterion->value);
        self::assertInternalType('string', $criterion->operator);
        self::assertEquals(Operator::EQ, $criterion->operator);
        self::assertEquals(array(9), $criterion->value);
    }