From 9b3f6f557a127fef16be267c26f8239dc1c22126 Mon Sep 17 00:00:00 2001 From: msquare Date: Wed, 19 Jul 2017 21:49:04 +0200 Subject: [PATCH] update tests to work with phpunit version installed by composer --- phpunit.xml | 3 ++- test/model/LogEntriesModelTest.php | 8 +++++--- test/model/RoomModelTest.php | 14 ++++++++------ 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index 29bfdba5..b868096c 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -16,7 +16,8 @@ ./include/ ./public/ - + ./src/ + diff --git a/test/model/LogEntriesModelTest.php b/test/model/LogEntriesModelTest.php index 4da6fd4b..25d46fc4 100644 --- a/test/model/LogEntriesModelTest.php +++ b/test/model/LogEntriesModelTest.php @@ -1,9 +1,11 @@ assertNotFalse(LogEntry_create('test', 'test_LogEntry_create')); - + // There should be one more log entry now $this->assertEquals(count(LogEntries()), $count + 1); } diff --git a/test/model/RoomModelTest.php b/test/model/RoomModelTest.php index 9c91939d..135a6108 100644 --- a/test/model/RoomModelTest.php +++ b/test/model/RoomModelTest.php @@ -1,9 +1,11 @@ create_Room(); - + $room = Room($this->room_id); - + $this->assertNotFalse($room); $this->assertNotNull($room); $this->assertEquals($room['Name'], 'test'); - - $this->assertNull(Room(-1)); + + $this->assertNull(Room(- 1)); } /**