Fix minor PR remarks [MAILPOET-2015]
Reuse updateCaptcha() function Inject Captcha class using DI Add no-cache headers to captcha image Fix an error when accessing the captcha page directly Edit the line in settings regarding missing dependencies
This commit is contained in:
@@ -7,12 +7,13 @@ use MailPoet\Models\Subscriber;
|
||||
use MailPoet\Models\Setting;
|
||||
use MailPoet\Config\Populator;
|
||||
use MailPoet\Settings\SettingsController;
|
||||
use MailPoet\Subscription\Captcha;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class UrlTest extends \MailPoetTest {
|
||||
function _before() {
|
||||
parent::_before();
|
||||
$populator = new Populator(new SettingsController, WPFunctions::get());
|
||||
$populator = new Populator(new SettingsController, WPFunctions::get(), new Captcha);
|
||||
$populator->up();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user