list() is a reserved php keyword, changed ApiCommand::list() to ApiCommand::listing()

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-03-02 17:22:47 +01:00
parent 594512404f
commit cadb6618ec
18 changed files with 37 additions and 37 deletions

View File

@@ -77,7 +77,7 @@ class AdminsTest extends TestCase
{
global $admin_userdata;
$json_result = Admins::getLocal($admin_userdata)->list();
$json_result = Admins::getLocal($admin_userdata)->listing();
$result = json_decode($json_result, true)['data'];
$this->assertEquals(2, $result['count']);
}
@@ -114,7 +114,7 @@ class AdminsTest extends TestCase
$this->expectExceptionCode(403);
$this->expectExceptionMessage("Not allowed to execute given command.");
Admins::getLocal($reseller_userdata)->list();
Admins::getLocal($reseller_userdata)->listing();
}
public function testAdminAdminsUnlock()