Ejemplo n.º 1
0
 function testAddDeleteAccount()
 {
     $expected = new UserAccount('new_acc', 'pass', 'ADMIN');
     $this->db->addAccount($expected);
     $result = $this->db->queryUser('new_acc');
     $this->db->deleteUser('new_acc');
     // clean up after ourselves
     $this->assertIdentical($expected, $result);
 }