From 56adc559e3a0d4d9b75198467f356ffc8f918fa7 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Wed, 5 Sep 2018 19:12:57 +0200 Subject: [PATCH] Optimized test structure --- application/phpunit.xml.dist | 4 ++-- application/tests/integration/.gitignore | 0 .../{src => tests/unit}/Controller/DefaultControllerTest.php | 5 ++++- .../{src => tests/unit}/Controller/UserControllerTest.php | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 application/tests/integration/.gitignore rename application/{src => tests/unit}/Controller/DefaultControllerTest.php (86%) rename application/{src => tests/unit}/Controller/UserControllerTest.php (95%) diff --git a/application/phpunit.xml.dist b/application/phpunit.xml.dist index 86eae18..75ed3fc 100644 --- a/application/phpunit.xml.dist +++ b/application/phpunit.xml.dist @@ -18,8 +18,8 @@ - - tests/ + + ./integration/ ./src/ diff --git a/application/tests/integration/.gitignore b/application/tests/integration/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/application/src/Controller/DefaultControllerTest.php b/application/tests/unit/Controller/DefaultControllerTest.php similarity index 86% rename from application/src/Controller/DefaultControllerTest.php rename to application/tests/unit/Controller/DefaultControllerTest.php index 5a05237..67523cd 100644 --- a/application/src/Controller/DefaultControllerTest.php +++ b/application/tests/unit/Controller/DefaultControllerTest.php @@ -1,7 +1,10 @@