- added -f flag to run unit test command in order to fail fast - pass only id to "$endpoint->get($id)" in React forms instead of array - updated routers according to the ->get($id) change - refactored a bit the way form creation works - added unit tests for Segments router
22 lines
487 B
PHP
22 lines
487 B
PHP
<?php
|
|
use \MailPoet\Router\Setup;
|
|
use \MailPoet\Models\Setting;
|
|
|
|
class SetupCest {
|
|
function _before() {
|
|
Setting::setValue('signup_confirmation.enabled', false);
|
|
}
|
|
|
|
function itCanReinstall() {
|
|
/*$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();
|
|
}
|
|
} |