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

testBuildValue() public method

public testBuildValue ( SectionLimitationType $limitationType )
$limitationType eZ\Publish\Core\Limitation\SectionLimitationType
    public function testBuildValue(SectionLimitationType $limitationType)
    {
        $expected = array('test', 'test' => '33');
        $value = $limitationType->buildValue($expected);
        self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\User\\Limitation\\SectionLimitation', $value);
        self::assertInternalType('array', $value->limitationValues);
        self::assertEquals($expected, $value->limitationValues);
    }