ImboIntegrationTest\Auth\AccessControl\Adapter\AdapterTests::testCanRemoveGroup PHP Метод

testCanRemoveGroup() публичный Метод

public testCanRemoveGroup ( )
    public function testCanRemoveGroup()
    {
        // Try to delete group that does not exist
        $this->assertFalse($this->adapter->deleteResourceGroup('g1'));
        $this->assertTrue($this->adapter->addResourceGroup('g1', ['images.get', 'images.head']));
        $this->assertSame(['images.get', 'images.head'], $this->adapter->getGroup('g1'));
        $this->assertTrue($this->adapter->deleteResourceGroup('g1'));
        $this->assertSame(false, $this->adapter->getGroup('g1'));
    }