aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lib/models/resources/BuildingTest.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-07-14 08:21:04 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-07-14 08:21:04 +0000
commit24377df5463c10696077822a81a8fa20790a4749 (patch)
tree98db3b55da25cf32d5ea3af46314077cc071e920 /tests/functional/lib/models/resources/BuildingTest.php
parentb7dcb67da285cd25122a59dd342ca78400450ff2 (diff)
fix errors in tests, fixes #1309
Closes #1309 Merge request studip/studip!805
Diffstat (limited to 'tests/functional/lib/models/resources/BuildingTest.php')
-rw-r--r--tests/functional/lib/models/resources/BuildingTest.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/functional/lib/models/resources/BuildingTest.php b/tests/functional/lib/models/resources/BuildingTest.php
index 109cccb..6576196 100644
--- a/tests/functional/lib/models/resources/BuildingTest.php
+++ b/tests/functional/lib/models/resources/BuildingTest.php
@@ -23,10 +23,15 @@ class BuildingTest extends \Codeception\Test\Unit
protected $db_handle;
protected $oldUser;
+ private $location_cat;
+ private $building_cat;
+ private $location;
+ private $building;
+
/**
* @SuppressWarnings(PHPMD.Superglobals)
*/
- protected function _before()
+ protected function setUp(): void
{
//First we must initialise the StudipPDO database connection:
$this->db_handle = new \StudipPDO(
@@ -61,7 +66,7 @@ class BuildingTest extends \Codeception\Test\Unit
//Everything is set up for the test cases.
}
- protected function _after()
+ protected function tearDown(): void
{
//We must roll back the changes we made in this test
//so that the live database remains unchanged after