public function testRemoveExtraData() { // First persist the user $this->user->save(); // Now check if we can find it by its Id $user = $this->userMapper->findOneById($this->user->getId()); $this->userExtra->setUserId($user->getId()); $this->userMapper->insertExtraData($this->userExtra); $result = $this->userMapper->removeExtraData($user->getId()); $this->assertTrue($result); }