AuthenticationSignonTest::testAuthSetUser PHP Method

testAuthSetUser() public method

Test for PMA\libraries\plugins\auth\AuthenticationSignon::authSetUser
public testAuthSetUser ( ) : void
return void
    public function testAuthSetUser()
    {
        $GLOBALS['PHP_AUTH_USER'] = 'testUser123';
        $GLOBALS['PHP_AUTH_PW'] = 'testPass123';
        $this->assertTrue($this->object->authSetUser());
        $this->assertEquals('testUser123', $GLOBALS['cfg']['Server']['user']);
        $this->assertEquals('testPass123', $GLOBALS['cfg']['Server']['password']);
    }