Acl\Test\TestCase\Adapter\CacheDbAclTest::testCacheFalse PHP Method

testCacheFalse() public method

Tests that permissions are cached for false permissions
public testCacheFalse ( ) : void
return void
    public function testCacheFalse()
    {
        $this->CachedDb->Permission = $this->getMockBuilder('Acl\\Model\\Table\\PermissionsTable')->getMock();
        $this->CachedDb->Permission->expects($this->once())->method('check')->with('Samir', 'view', 'create')->will($this->returnValue(false));
        $this->assertFalse($this->CachedDb->check('Samir', 'view', 'create'));
        $this->assertFalse($this->CachedDb->check('Samir', 'view', 'create'));
    }