Acl\Test\TestCase\AclShellTest::testSetParentNode PHP Méthode

testSetParentNode() public méthode

public testSetParentNode ( )
    public function testSetParentNode()
    {
        $this->Shell->args = ['create', 'aco', 'ROOT', 'Parent'];
        $this->Shell->runCommand($this->Shell->args);
        $this->Shell->args = ['create', 'aco', 'ROOT', 'Child'];
        $this->Shell->runCommand($this->Shell->args);
        $this->Shell->args = ['setparent', 'aco', 'Child', 'Parent'];
        $this->Shell->runCommand($this->Shell->args);
        $node = $this->Acos->node('Parent/Child')->first();
        $this->assertNotEmpty($node);
    }