Move API User tests
This commit is contained in:
parent
51c94016cd
commit
f0b97d8e13
|
@ -153,15 +153,7 @@ class ApiTest extends FixtureTest
|
|||
self::assertEquals($this->selfUser['id'], BaseApi::getCurrentUserID());
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_user() function with an unallowed user.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiUserWithUnallowedUser()
|
||||
{
|
||||
// self::assertEquals(false, api_user());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test the api_source() function.
|
||||
|
|
|
@ -124,4 +124,16 @@ class UserTest extends FixtureTest
|
|||
self::assertEquals(0, $user['pid']);
|
||||
self::assertEmpty($user['name']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_user() function with an unallowed user.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiUserWithUnallowedUser()
|
||||
{
|
||||
self::markTestIncomplete('Needs BasicAuth as dynamic method for overriding first');
|
||||
|
||||
// self::assertEquals(false, api_user());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue