Major update of unit tests / updated routers + models + react

This commit is contained in:
Jonathan Labreuille
2016-02-04 19:04:52 +01:00
parent 233020ca20
commit 55f851208b
25 changed files with 523 additions and 441 deletions

View File

@@ -40,16 +40,6 @@ class FormsCest {
expect($response['items'][2]['name'])->equals('Form 3');
}
function itCanGetAllForms() {
$forms = Form::findArray();
$router = new Forms();
$response = $router->getAll();
expect($response)->count(3);
expect($response)->equals($forms);
}
function itCanCreateANewForm() {
$router = new Forms();
$response = $router->create();