Skip to content

Commit

Permalink
Fix tests for yiisoft/db#209 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustamwin authored and devanych committed Feb 2, 2021
1 parent cfd5d81 commit 14c2f7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use Yiisoft\Factory\Definitions\Reference;
use Yiisoft\Log\Logger;
use Yiisoft\Profiler\Profiler;
use Yiisoft\Profiler\ProfilerInterface;

use function explode;
use function file_get_contents;
Expand All @@ -43,7 +44,7 @@ class TestCase extends AbstractTestCase
protected string $likeEscapeCharSql = '';
protected array $likeParameterReplacements = [];
protected LoggerInterface $logger;
protected Profiler $profiler;
protected ProfilerInterface $profiler;
protected QueryCache $queryCache;
protected SchemaCache $schemaCache;

Expand Down Expand Up @@ -106,7 +107,7 @@ protected function configContainer(): void

$this->aliases = $this->container->get(Aliases::class);
$this->logger = $this->container->get(LoggerInterface::class);
$this->profiler = $this->container->get(Profiler::class);
$this->profiler = $this->container->get(ProfilerInterface::class);
$this->cache = $this->container->get(CacheInterface::class);
$this->connection = $this->container->get(ConnectionInterface::class);
$this->queryCache = $this->container->get(QueryCache::class);
Expand Down Expand Up @@ -291,6 +292,7 @@ private function config(): array
],

LoggerInterface::class => Logger::class,
ProfilerInterface::class => Profiler::class,

ConnectionInterface::class => [
'__class' => Connection::class,
Expand Down

0 comments on commit 14c2f7e

Please sign in to comment.