summaryrefslogtreecommitdiff
path: root/tests/Feature/model/RoomModelTest.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-12 13:25:56 +0100
committerGitHub <noreply@github.com>2017-11-12 13:25:56 +0100
commitebc973bf221bfbde327868975221e62704e4cb99 (patch)
tree9011a160f3d6f9cae37fc02836e7d6e8c25242ca /tests/Feature/model/RoomModelTest.php
parent801c17aa6cef91be988a25a90442be8d2078a70d (diff)
parentad948bdd3201e922b626a736b0122533bdd37cae (diff)
Merge pull request #349 from MyIgel/master
Changed container to Illuminate/Container and added service providers
Diffstat (limited to 'tests/Feature/model/RoomModelTest.php')
-rw-r--r--tests/Feature/model/RoomModelTest.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/tests/Feature/model/RoomModelTest.php b/tests/Feature/model/RoomModelTest.php
deleted file mode 100644
index 96be84a2..00000000
--- a/tests/Feature/model/RoomModelTest.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-namespace Engelsystem\Test;
-
-use PHPUnit\Framework\TestCase;
-
-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, '');
- }
-
- public function test_Room()
- {
- $this->create_Room();
-
- $room = Room($this->room_id);
-
- $this->assertNotFalse($room);
- $this->assertNotNull($room);
- $this->assertEquals($room['Name'], 'test');
-
- $this->assertNull(Room(-1));
- }
-
- public function tearDown()
- {
- if ($this->room_id != null) {
- Room_delete($this->room_id);
- }
- }
-}