/** * @return void */ private function createEntry() { /** @var $entry \Aoe\FeloginBruteforceProtection\Domain\Model\Entry */ $this->entry = $this->objectManager->get('Aoe\\FeloginBruteforceProtection\\Domain\\Model\\Entry'); $this->entry->setFailures(0); $this->entry->setCrdate(time()); $this->entry->setTstamp(time()); $this->entry->setIdentifier($this->getClientIdentifier()); $this->entryRepository->add($this->entry); $this->persistenceManager->persistAll(); $this->clientRestricted = false; }
/** * @test */ public function setIdentifierForStringSetsIdentifier() { $this->fixture->setIdentifier('Conceived at T3CON10'); $this->assertSame('Conceived at T3CON10', $this->fixture->getIdentifier()); }