From ae6c40148b7b88be91dbb8d3f29ff39426db9d06 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 21 Sep 2010 20:29:10 +0000 Subject: [PATCH] MINOR Fixed SSViewerTest to initialize controller properly git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@111047 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/SSViewerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');