diff options
Diffstat (limited to 'tests/Feature/Model')
-rw-r--r-- | tests/Feature/Model/LogEntryTest.php | 2 | ||||
-rw-r--r-- | tests/Feature/Model/RoomModelTest.php | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/tests/Feature/Model/LogEntryTest.php b/tests/Feature/Model/LogEntryTest.php index 25b35676..7fad8232 100644 --- a/tests/Feature/Model/LogEntryTest.php +++ b/tests/Feature/Model/LogEntryTest.php @@ -49,7 +49,7 @@ class LogEntryTest extends TestCase /** * This method is called before a test is executed. */ - public function setUp() + protected function setUp(): void { LogEntry::query()->truncate(); } diff --git a/tests/Feature/Model/RoomModelTest.php b/tests/Feature/Model/RoomModelTest.php index 216c87da..9908082a 100644 --- a/tests/Feature/Model/RoomModelTest.php +++ b/tests/Feature/Model/RoomModelTest.php @@ -8,11 +8,17 @@ class RoomModelTest extends TestCase { private $room_id = null; + /** + * @covers \Room_create + */ public function createRoom() { $this->room_id = Room_create('test', false, null, null); } + /** + * @covers \Room + */ public function testRoom() { $this->createRoom(); @@ -26,7 +32,10 @@ class RoomModelTest extends TestCase $this->assertEmpty(Room(-1)); } - public function tearDown() + /** + * Cleanup + */ + protected function tearDown(): void { if ($this->room_id != null) { Room_delete($this->room_id); |