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

testBuildValue() public method

public testBuildValue ( ParentDepthLimitationType $limitationType )
$limitationType eZ\Publish\Core\Limitation\ParentDepthLimitationType
    public function testBuildValue(ParentDepthLimitationType $limitationType)
    {
        $expected = [2, 7];
        $value = $limitationType->buildValue($expected);
        self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\User\\Limitation\\ParentDepthLimitation', $value);
        self::assertInternalType('array', $value->limitationValues);
        self::assertEquals($expected, $value->limitationValues);
    }