Acl\Test\TestCase\AclShellTest::testCreateDeleteNode PHP Method

testCreateDeleteNode() public method

    public function testCreateDeleteNode()
    {
        $this->Shell->args = ['create', 'aco', 'ROOT', 'Controller3'];
        $this->Shell->runCommand($this->Shell->args);
        $node = $this->Acos->node('ROOT/Controller3')->first();
        $this->assertNotEmpty($node);
        $this->Shell->args = ['delete', 'aco', 'ROOT/Controller3'];
        $this->Shell->runCommand($this->Shell->args);
        $node = $this->Acos->node('ROOT/Controller3');
        $this->assertEmpty($node);
    }