From d59b1c8812f62848acc2bf19f020abf4949e75ef Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 9 Oct 2016 09:40:11 +0200 Subject: fix phpunit config --- test/model/RoomModelTest.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/model/RoomModelTest.php (limited to 'test/model/RoomModelTest.php') diff --git a/test/model/RoomModelTest.php b/test/model/RoomModelTest.php new file mode 100644 index 00000000..33e6ca37 --- /dev/null +++ b/test/model/RoomModelTest.php @@ -0,0 +1,33 @@ +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)); + } + + /** + * @after + */ + public function teardown() { + if ($this->room_id != null) { + Room_delete($this->room_id); + } + } +} + +?> -- cgit v1.2.3-54-g00ecf