diff --git a/phpunit.xml b/phpunit.xml index ee5ae3e8..e78a54f3 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,14 +1,11 @@ - - ./test/model/ - - - ./test/Logger/ + + ./tests/Feature diff --git a/test/Logger/EngelsystemLoggerTest.php b/tests/Feature/Logger/EngelsystemLoggerTest.php similarity index 95% rename from test/Logger/EngelsystemLoggerTest.php rename to tests/Feature/Logger/EngelsystemLoggerTest.php index 2219cdb2..3b6572f5 100644 --- a/test/Logger/EngelsystemLoggerTest.php +++ b/tests/Feature/Logger/EngelsystemLoggerTest.php @@ -10,6 +10,11 @@ use Psr\Log\LogLevel; class EngelsystemLoggerTest extends TestCase { + public static function setUpBeforeClass() + { + require_once __DIR__ . '/../../../includes/engelsystem_provider.php'; + } + /** * @return LoggerInterface */ diff --git a/test/model/LogEntriesModelTest.php b/tests/Feature/model/LogEntriesModelTest.php similarity index 85% rename from test/model/LogEntriesModelTest.php rename to tests/Feature/model/LogEntriesModelTest.php index 761725c4..6d7b0ebc 100644 --- a/test/model/LogEntriesModelTest.php +++ b/tests/Feature/model/LogEntriesModelTest.php @@ -7,6 +7,11 @@ use Psr\Log\LogLevel; class LogEntriesModelTest extends TestCase { + public static function setUpBeforeClass() + { + require_once __DIR__ . '/../../../includes/engelsystem_provider.php'; + } + public function testCreateLogEntry() { LogEntries_clear_all(); diff --git a/test/model/RoomModelTest.php b/tests/Feature/model/RoomModelTest.php similarity index 82% rename from test/model/RoomModelTest.php rename to tests/Feature/model/RoomModelTest.php index 4205845b..96be84a2 100644 --- a/test/model/RoomModelTest.php +++ b/tests/Feature/model/RoomModelTest.php @@ -8,6 +8,11 @@ class RoomModelTest extends TestCase { private $room_id = null; + public static function setUpBeforeClass() + { + require_once __DIR__ . '/../../../includes/engelsystem_provider.php'; + } + public function create_Room() { $this->room_id = Room_create('test', false, true, '');