示例#1
0
 /**
  * Tear down the test environment.
  *
  * @return array
  */
 public function tearDown()
 {
     try {
         self::deleteTestCollection();
     } catch (KinveyResponseException $e) {
     }
     $users = Kinvey::query(array('collection' => 'user', 'username' => '*****@*****.**'));
     if (!empty($users)) {
         Kinvey::deleteEntity(array('collection' => 'user', '_id' => $users[0]['_id'], 'authMode' => 'admin', 'hard' => 'true'));
     }
 }