diff --git a/tests/SSViewerTest.php b/tests/SSViewerTest.php index c0811c4fb..50593076b 100644 --- a/tests/SSViewerTest.php +++ b/tests/SSViewerTest.php @@ -21,7 +21,7 @@ class SSViewerTest extends SapphireTest { // Pretent to load the page $c = new ContentController(); - $c->init(); + $c->handleRequest(new SS_HTTPRequest('GET', '/')); $this->assertEquals('myusertheme', SSViewer::current_theme(), 'Current theme is a user defined one');