protected function setUp() { parent::setUp(); $this->passwordFactory = new PasswordFactory(); foreach ($this->getTypeConfigs() as $type => $config) { $this->passwordFactory->register($type, $config); } }