From c57dfc631caf98df46ac014812f962863f0bfa61 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 19 Sep 2017 19:50:59 +0200 Subject: engelsystem_provider should not be loaded in phpunit, changed dir structure --- tests/Feature/model/RoomModelTest.php | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tests/Feature/model/RoomModelTest.php (limited to 'tests/Feature/model/RoomModelTest.php') diff --git a/tests/Feature/model/RoomModelTest.php b/tests/Feature/model/RoomModelTest.php new file mode 100644 index 00000000..96be84a2 --- /dev/null +++ b/tests/Feature/model/RoomModelTest.php @@ -0,0 +1,40 @@ +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); + } + } +} -- cgit v1.2.3-70-g09d2