ImboIntegrationTest\Auth\AccessControl\Adapter\AdapterTests::testCanCheckIfGroupExists PHP Method

testCanCheckIfGroupExists() public method

    public function testCanCheckIfGroupExists()
    {
        $this->assertFalse($this->adapter->groupExists('g1'));
        $this->assertFalse($this->adapter->groupExists('g2'));
        $this->assertFalse($this->adapter->groupExists('g3'));
        $this->adapter->addResourceGroup('g1');
        $this->adapter->addResourceGroup('g2');
        $this->assertTrue($this->adapter->groupExists('g1'));
        $this->assertTrue($this->adapter->groupExists('g2'));
        $this->assertFalse($this->adapter->groupExists('g3'));
    }