Skip to content

Commit

Permalink
chore(tests): call method statically
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Mar 10, 2025
1 parent b0a2067 commit 1b902f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/tests/classes/Elgg/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ public static function tearDownAfterClass(): void {
// performing some additional cleanup as we can't rely on php garbage collection
foreach (CacheManager::getInstances() as $instance) {
if ($instance instanceof \Phpfastcache\Drivers\Memcached\Driver) {
$memcached_software = $this->getInaccessableProperty($instance, 'instance');
$memcached_software = self::getInaccessableProperty($instance, 'instance');
$memcached_software->flush();
$memcached_software->quit();
} elseif ($instance instanceof \Phpfastcache\Drivers\Redis\Driver) {
$redis_software = $this->getInaccessableProperty($instance, 'instance');
$redis_software = self::getInaccessableProperty($instance, 'instance');
$redis_software->flushAll();
$redis_software->close();
}
Expand Down

0 comments on commit 1b902f9

Please sign in to comment.