protected function setUp() { parent::setUp(); $this->user = new AccountUser(); $this->user->setEmail('*****@*****.**')->setPlainPassword(self::PASSWORD)->setConfirmationToken($this->user->generateToken()); $this->mailProcessor = new Processor($this->managerRegistry, $this->configManager, $this->renderer, $this->emailHolderHelper, $this->mailer); }
/** * @return array */ public function submitProvider() { $entity = new AccountUser(); $expectedEntity = new AccountUser(); $expectedEntity->setFirstName('John'); $expectedEntity->setLastName('Doe'); $expectedEntity->setEmail('*****@*****.**'); $entity->setSalt($expectedEntity->getSalt()); return ['new user' => ['defaultData' => $entity, 'submittedData' => ['firstName' => 'John', 'lastName' => 'Doe', 'email' => '*****@*****.**', 'plainPassword' => '123456'], 'expectedData' => $expectedEntity]]; }