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

testReturnsEmptyArrayWhenThereIsNoGroups() public method

    public function testReturnsEmptyArrayWhenThereIsNoGroups()
    {
        $model = $this->getMock('Imbo\\Model\\Groups');
        $model->expects($this->once())->method('setHits')->with(0);
        $this->assertSame([], $this->adapter->getGroups(null, $model));
    }