/** * @return \Orm\Zed\User\Persistence\SpyUser */ protected function createTestUser() { $userEntity = new SpyUser(); $userEntity->setUsername(self::TEST_MAIL); $userEntity->setFirstName('FirstName'); $userEntity->setLastName('LastName'); $userEntity->setPassword('Secret'); $userEntity->setStatus(0); return $userEntity; }
/** * @param \Orm\Zed\User\Persistence\SpyUser $userEntity * * @return \Generated\Shared\Transfer\UserTransfer */ protected function entityToTransfer(SpyUser $userEntity) { $userTransfer = new UserTransfer(); $userTransfer->fromArray($userEntity->toArray(), true); return $userTransfer; }
/** * @param \Orm\Zed\User\Persistence\SpyUser $user * * @return string */ protected function getRemoveUrl(SpyUser $user) { return $this->generateRemoveButton('/acl/group/delete-user-from-group', 'Delete', ['id-user' => $user->getIdUser(), 'id-group' => $this->idGroup]); }