CakeDC\Users\Test\TestCase\Controller\Component\GoogleAuthenticatorComponentTest::testInitialize PHP Метод

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

Test initialize
public testInitialize ( )
    public function testInitialize()
    {
        $this->Registry->unload('GoogleAuthenticator');
        $this->Controller->GoogleAuthenticator = new GoogleAuthenticatorComponent($this->Registry);
        $this->assertInstanceOf('CakeDC\\Users\\Controller\\Component\\GoogleAuthenticatorComponent', $this->Controller->GoogleAuthenticator);
    }