Acl\Test\TestCase\Controller\Component\AclComponentTest::testAdapter PHP Method

testAdapter() public method

test that adapter() allows control of the internal implementation AclComponent uses.
public testAdapter ( ) : void
return void
    public function testAdapter()
    {
        $Adapter = $this->getMockBuilder('Acl\\AclInterface')->getMock();
        $Adapter->expects($this->once())->method('initialize')->with($this->Acl);
        $this->assertNull($this->Acl->adapter($Adapter));
        $this->assertEquals($this->Acl->adapter(), $Adapter, 'Returned object is different %s');
    }