Skip to content

Commit 227033d

Browse files
committed
Fix failing test
1 parent 8f214e9 commit 227033d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/config/console.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
'charset' => 'utf8',
8181
'tablePrefix'=>'itt_',
8282
],
83+
'cache' => [
84+
'class' => 'yii\caching\FileCache',
85+
],
8386
],
8487
];
8588

tests/unit/PathAutoCompletionTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ public function testComplete()
1313
{
1414
Yii::setAlias('@vendor', __DIR__.'/items');
1515
$this->prepareTempDir();
16-
Yii::setAlias('@app', __DIR__.'/../specs');
1716
Yii::setAlias('@runtime', __DIR__.'/../tmp/app');
1817

18+
$this->mockRealApplication(); // to register cache component
19+
Yii::setAlias('@app', __DIR__.'/../specs');
20+
Yii::setAlias('@webroot', __DIR__.'@app/web');
1921

2022
$completion = (new PathAutoCompletion())->complete();
2123
self::assertNotEmpty($completion);

0 commit comments

Comments
 (0)