Skip to content

Commit

Permalink
Fix reinitializing Grav in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Apr 14, 2016
1 parent e58994d commit a778878
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
Grav::resetInstance();
$grav = Grav::instance();
$grav['config']->init();

foreach (array_keys($grav['setup']->getStreams()) as $stream) {
@stream_wrapper_unregister($stream);
}

$grav['streams'];
$grav['plugins']->init();
$grav['themes']->init();
Expand Down

0 comments on commit a778878

Please sign in to comment.