summaryrefslogtreecommitdiff
path: root/tests/Feature/Model/RoomModelTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-24 10:45:00 +0200
committermsquare <msquare@notrademark.de>2019-04-25 17:56:06 +0200
commitc74fa7955d9392aea954c2e45ed4137fb2bebcbe (patch)
tree034c93b4b3ccc31e6cc9c27dd87f139569c10c72 /tests/Feature/Model/RoomModelTest.php
parentb74835a0968c35ad9a0955dd8b5e2f3cf9b72a56 (diff)
phpunit: Upgrade to version 8, fixed tests, formatting
Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated
Diffstat (limited to 'tests/Feature/Model/RoomModelTest.php')
-rw-r--r--tests/Feature/Model/RoomModelTest.php11
1 files changed, 10 insertions, 1 deletions
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);