And again ...
This commit is contained in:
parent
4c05228497
commit
0c26ae31f6
1 changed files with 4 additions and 1 deletions
|
@ -224,7 +224,7 @@ class ApiTest extends FixtureTest
|
||||||
*/
|
*/
|
||||||
public function testApiUser()
|
public function testApiUser()
|
||||||
{
|
{
|
||||||
self::assertEquals($this->selfUser['id'], api_user());
|
self::assertEquals($this->selfUser['id'], BaseApi::getCurrentUserID());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -711,11 +711,14 @@ class ApiTest extends FixtureTest
|
||||||
*/
|
*/
|
||||||
public function testApiGetUserWithoutApiUser()
|
public function testApiGetUserWithoutApiUser()
|
||||||
{
|
{
|
||||||
|
// api_get_user() with empty parameters is not used anymore
|
||||||
|
/*
|
||||||
$_SERVER['PHP_AUTH_USER'] = 'Test user';
|
$_SERVER['PHP_AUTH_USER'] = 'Test user';
|
||||||
$_SERVER['PHP_AUTH_PW'] = 'password';
|
$_SERVER['PHP_AUTH_PW'] = 'password';
|
||||||
$_SESSION['allow_api'] = false;
|
$_SESSION['allow_api'] = false;
|
||||||
BasicAuth::setCurrentUserID();
|
BasicAuth::setCurrentUserID();
|
||||||
self::assertFalse(api_get_user());
|
self::assertFalse(api_get_user());
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue