public function testRemoveApiKey() { $user = new User(); $this->assertEmpty($user->getApiKey()); $user->setApiKey('foo'); $this->assertNotEmpty($user->getApiKey()); $user->removeApiKey(); $this->assertEmpty($user->getApiKey()); }