Phalcon\Test\Mvc\Model\Behavior\NestedSetTest::testShouldCreateNestedSetBehaviorInstanceWithNoParams PHP Method

testShouldCreateNestedSetBehaviorInstanceWithNoParams() public method

Initialize NestedSet Behavior without params
Since: 2016-02-27
Author: Serghei Iakovlev ([email protected])
    public function testShouldCreateNestedSetBehaviorInstanceWithNoParams()
    {
        $this->specify('Unable to initialize NestedSet Behavior without params correctly', function ($property, $expected) {
            $behavior = new NestedSetBehavior();
            expect($this->getProperty($property, $behavior))->equals($expected);
        }, ['examples' => [['db', null], ['owner', null], ['hasManyRoots', false], ['rootAttribute', 'root'], ['leftAttribute', 'lft'], ['rightAttribute', 'rgt'], ['rootAttribute', 'root'], ['levelAttribute', 'level'], ['primaryKey', 'id'], ['ignoreEvent', false], ['deleted', false]]]);
    }