Create the Limitation Value.
public buildValue ( array $limitationValues ) : eZ\Publish\API\Repository\Values\User\Limitation | ||
$limitationValues | array | |
Результат | eZ\Publish\API\Repository\Values\User\Limitation |
/** * @depends testConstruct * * @param \eZ\Publish\Core\Limitation\NewObjectStateLimitationType $limitationType */ public function testBuildValue(NewObjectStateLimitationType $limitationType) { $expected = array('test', 'test' => 9); $value = $limitationType->buildValue($expected); self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\User\\Limitation\\NewObjectStateLimitation', $value); self::assertInternalType('array', $value->limitationValues); self::assertEquals($expected, $value->limitationValues); }