Move API User tests

This commit is contained in:
Philipp 2021-12-30 20:51:21 +01:00
parent 51c94016cd
commit f0b97d8e13
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
2 changed files with 13 additions and 9 deletions

View file

@ -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.

View file

@ -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());
}
}