diff options
| author | mlunzena <lunzenauer@elan-ev.de> | 2021-08-18 10:19:43 +0200 |
|---|---|---|
| committer | mlunzena <lunzenauer@elan-ev.de> | 2021-08-18 10:22:01 +0200 |
| commit | 607b1e07f0768227066e528a3792eaedaec941aa (patch) | |
| tree | 94dbaaccd2e39f7064b0248c74eff1292b12abd0 /tests/unit/lib/classes/AvatarClassTest.php | |
| parent | cf997f4c7d1fc0474fea242c6d4e9206a0bc3521 (diff) | |
update Codeception and phpunit, refs #81
Diffstat (limited to 'tests/unit/lib/classes/AvatarClassTest.php')
| -rw-r--r-- | tests/unit/lib/classes/AvatarClassTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/lib/classes/AvatarClassTest.php b/tests/unit/lib/classes/AvatarClassTest.php index cc7bbbc..f531b26 100644 --- a/tests/unit/lib/classes/AvatarClassTest.php +++ b/tests/unit/lib/classes/AvatarClassTest.php @@ -22,7 +22,7 @@ require_once 'lib/phplib/Seminar_Perm.class.php'; */ class AvatarTestCase extends \Codeception\Test\Unit { - function setUp() + function setUp(): void { $stub = $this->createMock('Seminar_Perm'); // Configure the stub. @@ -37,7 +37,7 @@ class AvatarTestCase extends \Codeception\Test\Unit { $this->avatar = Avatar::getAvatar($this->avatar_id); } - function tearDown() { + function tearDown(): void { unset($GLOBALS['DYNAMIC_CONTENT_PATH'], $GLOBALS['DYNAMIC_CONTENT_URL']); } @@ -70,7 +70,7 @@ class AvatarTestCase extends \Codeception\Test\Unit { class CourseAvatarTestCase extends \Codeception\Test\Unit { - function setUp() { + function setUp(): void { $this->avatar_id = "123456789"; $this->avatar = CourseAvatar::getAvatar($this->avatar_id); @@ -96,7 +96,7 @@ class CourseAvatarTestCase extends \Codeception\Test\Unit } } - function tearDown() { + function tearDown(): void { stream_wrapper_unregister("var"); unset($GLOBALS['DYNAMIC_CONTENT_PATH'], $GLOBALS['DYNAMIC_CONTENT_URL']); } |
