eZ\Publish\Core\Limitation\Tests\SectionLimitationTypeTest::testGetCriterionMultipleValues PHP Method

testGetCriterionMultipleValues() public method

public testGetCriterionMultipleValues ( SectionLimitationType $limitationType )
$limitationType eZ\Publish\Core\Limitation\SectionLimitationType
    public function testGetCriterionMultipleValues(SectionLimitationType $limitationType)
    {
        $criterion = $limitationType->getCriterion(new SectionLimitation(array('limitationValues' => array('9', '55'))), $this->getUserMock());
        self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\Content\\Query\\Criterion\\SectionId', $criterion);
        self::assertInternalType('array', $criterion->value);
        self::assertInternalType('string', $criterion->operator);
        self::assertEquals(Operator::IN, $criterion->operator);
        self::assertEquals(array('9', '55'), $criterion->value);
    }