engelsystem_provider should not be loaded in phpunit, changed dir structure

This commit is contained in:
Igor Scheller 2017-09-19 19:50:59 +02:00
parent e6ed8a3017
commit c57dfc631c
4 changed files with 18 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -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, '');