diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-07-14 08:21:04 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-07-14 08:21:04 +0000 |
| commit | 24377df5463c10696077822a81a8fa20790a4749 (patch) | |
| tree | 98db3b55da25cf32d5ea3af46314077cc071e920 /tests/unit/lib/classes/PluginRepositoryTest.php | |
| parent | b7dcb67da285cd25122a59dd342ca78400450ff2 (diff) | |
fix errors in tests, fixes #1309
Closes #1309
Merge request studip/studip!805
Diffstat (limited to 'tests/unit/lib/classes/PluginRepositoryTest.php')
| -rw-r--r-- | tests/unit/lib/classes/PluginRepositoryTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/lib/classes/PluginRepositoryTest.php b/tests/unit/lib/classes/PluginRepositoryTest.php index d1f0f08..6676b7c 100644 --- a/tests/unit/lib/classes/PluginRepositoryTest.php +++ b/tests/unit/lib/classes/PluginRepositoryTest.php @@ -14,12 +14,14 @@ require_once 'lib/plugins/engine/PluginRepository.class.php'; class PluginRepositoryTest extends \Codeception\Test\Unit { + private $repository; + public function setUp (): void { $GLOBALS['SOFTWARE_VERSION'] = '1.9.0'; $GLOBALS['CACHING_ENABLE'] = false; - $url = 'file://'.dirname(__FILE__).'/plugin_repository_test.xml'; + $url = 'file://' . __DIR__ . '/plugin_repository_test.xml'; $this->repository = new PluginRepository($url); } |
