Files
piratepoet/tests/unit/API/SetupTest.php
Jonathan Labreuille 9410d4f10a Reorganized new API + added legacy API support + new API
- Updated Settings Router to new standards
- Updated settings.html to reflect API change with better error handling
- Updated Settings API unit tests
2016-08-01 17:00:32 +02:00

22 lines
509 B
PHP

<?php
use \MailPoet\API\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();
}
}