protected function action() { $user = $this->getUser(); $user->confirmation_code = ''; $this->repository->update($user); $this->notificationInterface->inform($user); }
public function testUpdate() { $newName = 'Anna'; $originalUser = $this->repository->get(1); $originalUser->login = $newName; $this->repository->update($originalUser); $persistentUser = $this->repository->get(1); $this->assertEquals($newName, $persistentUser->login->getValue()); }