expect($actual->getUser($user1Key))->equal($user1); $actual->removeUser($user1Key); expect($actual->containsUser($user1Key))->to->be->false; }); }); describe('->updateUser(swagzilla)', function () { it('should add a user to an empty owner usergroup', function () { $actual = new Owner(); $username = "******"; $password = "******"; $email = "*****@*****.**"; $firstName = "Gary"; $lastName = "Grice"; $user1 = new User($username, $password, $email, $firstName, $lastName); $user1Key = $user1->getUserID(); $actual->addUser($user1); expect($actual->getUser($user1Key))->equal($user1); $passwordU = "OldDannyBrown12\$"; $emailU = "*****@*****.**"; $updatedUser1 = new User($username, $passwordU, $emailU, $firstName, $lastName); $actual->updateUser($user1Key, '', '', $passwordU, $emailU, ''); expect($actual->getUser($user1Key))->equal($updatedUser1); }); }); /* describe('->setCanManipulateNotes()', function(){ it('determines whether or not a group can create/edit notes if a user is added to the banned owner group then they cant create or edit notes', function() { $actual = new Owner(); $actual->setName("banned");