Skip to content

Commit

Permalink
tests: removed dependency on CacheExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 21, 2015
1 parent 7703e59 commit 72b8406
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/Database.DI/DatabaseExtension.basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ test(function () {
debugger: no
options:
lazy: yes
services:
cache: Nette\Caching\Storages\DevNullStorage
', 'neon'));

$compiler = new DI\Compiler;
$compiler->addExtension('database', new DatabaseExtension(FALSE));
$compiler->addExtension('cache', new Nette\Bridges\CacheDI\CacheExtension(TEMP_DIR));
eval($compiler->compile($config, 'Container1'));

$container = new Container1;
Expand Down
4 changes: 3 additions & 1 deletion tests/Database.DI/DatabaseExtension.multiple.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ test(function () {
debugger: no
options:
lazy: yes
services:
cache: Nette\Caching\Storages\DevNullStorage
', 'neon'));

$compiler = new DI\Compiler;
$compiler->addExtension('database', new DatabaseExtension(FALSE));
$compiler->addExtension('cache', new Nette\Bridges\CacheDI\CacheExtension(TEMP_DIR));
eval($compiler->compile($config, 'Container1'));

$container = new Container1;
Expand Down

0 comments on commit 72b8406

Please sign in to comment.