Пример #1
0
 public function testAllUsers()
 {
     $adm = new couchAdmin($this->aclient);
     $ok = $adm->getAllUsers(true);
     $this->assertType("array", $ok);
     $this->assertEquals(count($ok), 2);
 }
 public function testDeleteUser()
 {
     $adm = new couchAdmin($this->aclient);
     $ok = $adm->deleteUser("joe");
     $this->assertType("object", $ok);
     $this->assertObjectHasAttribute("ok", $ok);
     $this->assertEquals($ok->ok, true);
     $ok = $adm->getAllUsers(true);
     $this->assertType("array", $ok);
     $this->assertEquals(count($ok), 2);
 }