1
1
Fork 0

add missing namespaces/fix wrong class-names

This commit is contained in:
Philipp Holzer 2020-01-19 16:29:55 +01:00
commit 174129af94
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
13 changed files with 20 additions and 4 deletions

View file

@ -2,6 +2,8 @@
namespace Friendica\Test\Util;
use Friendica\Core\Cache\Duration;
trait DbaCacheMockTrait
{
/**
@ -30,7 +32,7 @@ trait DbaCacheMockTrait
$this->mockIsResult(['v' => $value], isset($return), $times);
}
protected function mockSet($key, $value, $ttl = Cache::FIVE_MINUTES, $time = null, $return = true, $times = null)
protected function mockSet($key, $value, $ttl = Duration::FIVE_MINUTES, $time = null, $return = true, $times = null)
{
if ($time === null) {
$time = time();