public function testUpdateExistingUser() { // Persist the user $this->user->save(); // Update the phone and save $this->user->setPhone("933332211"); $this->userMapper->update($this->user); $this->assertEquals("933332211", $this->user->getPhone()); }