CakeDC\Users\Test\TestCase\Controller\Traits\BaseTraitTest::_mockAuth PHP Method

_mockAuth() protected method

Mock the Auth component
protected _mockAuth ( ) : void
return void
    protected function _mockAuth()
    {
        $this->Trait->Auth = $this->getMockBuilder('Cake\\Controller\\Component\\AuthComponent')->setMethods(['user', 'identify', 'setUser', 'redirectUrl'])->disableOriginalConstructor()->getMock();
    }