示例#1
0
 /**
  * @depends testImpersonate
  */
 public function testAccountListings(AdminContext $context)
 {
     $users = $context->getAllUsers();
     $resellers = $context->getResellers();
     $admins = $context->getAdmins();
     $accounts = $context->getAllAccounts();
     $this->assertArrayHasKey(ADMIN_USERNAME, $admins);
     $this->assertArrayHasKey(MASTER_ADMIN_USERNAME, $accounts);
     $this->assertEquals(count($accounts), count($users) + count($resellers) + count($admins));
 }
示例#2
0
 public static function tearDownAfterClass()
 {
     self::$master->deleteAccount(self::$user->getUsername());
 }