Acl\Test\TestCase\AclExtrasTestCase::testAddingControllers PHP Method

testAddingControllers() public method

test adding controllers on sync
public testAddingControllers ( ) : void
return void
    public function testAddingControllers()
    {
        $this->_clean();
        $this->_setup();
        $this->Task->acoUpdate();
        $Aco = $this->Task->Acl->Aco;
        $Aco->cacheQueries = false;
        $result = $Aco->node('controllers/Comments')->toArray();
        $Aco->delete($result[0]);
        $this->Task->acoUpdate();
        $newResult = $Aco->node('controllers/Comments')->toArray();
        $this->assertNotEquals($newResult[0]['id'], $result[0]['id']);
        $this->assertEquals($newResult[0]['alias'], $result[0]['alias']);
    }