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

testBuildValue() public method

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