- (re)Added Endpoints folder to both API and Router - fixed syntax in namespaces - xhr.responseJSON is returned to the fail() - fixed Router endpoints (view in browser, cron,...)
22 lines
519 B
PHP
22 lines
519 B
PHP
<?php
|
|
use \MailPoet\API\Endpoints\Setup;
|
|
use \MailPoet\Models\Setting;
|
|
|
|
class SetupTest extends MailPoetTest {
|
|
function _before() {
|
|
Setting::setValue('signup_confirmation.enabled', false);
|
|
}
|
|
|
|
function testItCanReinstall() {
|
|
/*$router = new Setup();
|
|
$response = $router->reset();
|
|
expect($response['result'])->true();
|
|
|
|
$signup_confirmation = Setting::getValue('signup_confirmation.enabled');
|
|
expect($signup_confirmation)->true();*/
|
|
}
|
|
|
|
function _after() {
|
|
Setting::deleteMany();
|
|
}
|
|
} |