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" <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" xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.3/phpunit.xsd"
colors="true" colors="true"
> >
<testsuites> <testsuites>
<testsuite name="Models"> <testsuite name="Feature">
<directory>./test/model/</directory> <directory>./tests/Feature</directory>
</testsuite>
<testsuite name="Logger">
<directory>./test/Logger/</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter> <filter>

@ -10,6 +10,11 @@ use Psr\Log\LogLevel;
class EngelsystemLoggerTest extends TestCase class EngelsystemLoggerTest extends TestCase
{ {
public static function setUpBeforeClass()
{
require_once __DIR__ . '/../../../includes/engelsystem_provider.php';
}
/** /**
* @return LoggerInterface * @return LoggerInterface
*/ */

@ -7,6 +7,11 @@ use Psr\Log\LogLevel;
class LogEntriesModelTest extends TestCase class LogEntriesModelTest extends TestCase
{ {
public static function setUpBeforeClass()
{
require_once __DIR__ . '/../../../includes/engelsystem_provider.php';
}
public function testCreateLogEntry() public function testCreateLogEntry()
{ {
LogEntries_clear_all(); LogEntries_clear_all();

@ -8,6 +8,11 @@ class RoomModelTest extends TestCase
{ {
private $room_id = null; private $room_id = null;
public static function setUpBeforeClass()
{
require_once __DIR__ . '/../../../includes/engelsystem_provider.php';
}
public function create_Room() public function create_Room()
{ {
$this->room_id = Room_create('test', false, true, ''); $this->room_id = Room_create('test', false, true, '');
Loading…
Cancel
Save