eZ\Publish\Core\Limitation\Tests\NewObjectStateLimitationTypeTest::providerForTestEvaluate PHP Method

providerForTestEvaluate() public method

public providerForTestEvaluate ( ) : array
return array
    public function providerForTestEvaluate()
    {
        return array(array('limitation' => new NewObjectStateLimitation(), 'object' => new ContentInfo(), 'targets' => array(new ObjectState(array('id' => 66))), 'expected' => false), array('limitation' => new NewObjectStateLimitation(array('limitationValues' => array(2))), 'object' => new Content(), 'targets' => array(new ObjectState(array('id' => 66))), 'expected' => false), array('limitation' => new NewObjectStateLimitation(array('limitationValues' => array(2, 22))), 'object' => new Content(), 'targets' => array(new ObjectState(array('id' => 2)), new ObjectState(array('id' => 66))), 'expected' => false), array('limitation' => new NewObjectStateLimitation(array('limitationValues' => array(66))), 'object' => new ContentInfo(), 'targets' => array(new ObjectState(array('id' => 66))), 'expected' => true), array('limitation' => new NewObjectStateLimitation(array('limitationValues' => array(2, 66))), 'object' => new VersionInfo(), 'targets' => array(new ObjectState(array('id' => 66))), 'expected' => true), array('limitation' => new NewObjectStateLimitation(array('limitationValues' => array(2, 66))), 'object' => new Content(), 'targets' => array(new ObjectState(array('id' => 66)), new ObjectState(array('id' => 2))), 'expected' => true));
    }