Files
piratepoet/tests/unit/Router/SetupCest.php
Jonathan Labreuille 4fd0c4b484 Router updates + unit tests + React
- 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
2016-02-01 11:56:21 +01:00

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();
}
}