engelsystem_provider should not be loaded in phpunit, changed dir structure

main
Igor Scheller 7 years ago
parent e6ed8a3017
commit c57dfc631c

@ -1,14 +1,11 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="./includes/engelsystem_provider.php"
bootstrap="./includes/autoload.php"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.3/phpunit.xsd"
colors="true"
>
<testsuites>
<testsuite name="Models">
<directory>./test/model/</directory>
</testsuite>
<testsuite name="Logger">
<directory>./test/Logger/</directory>
<testsuite name="Feature">
<directory>./tests/Feature</directory>
</testsuite>
</testsuites>
<filter>

@ -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
*/

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

@ -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, '');
Loading…
Cancel
Save