Skip to content

Commit

Permalink
Update template path to allow PageController test to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Wagstaff committed Oct 5, 2017
1 parent 36a5840 commit 18296d0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/WidgetControllerTest/TestPageController.php
Expand Up @@ -19,12 +19,7 @@ class TestPageController extends PageController implements TestOnly
*/
public function getViewer($action)
{
if (file_exists('widgets')) {
SSViewer::add_themes(['silverstripe/widgets:tests/WidgetControllerTest']);
} else {
// When installed as the root project, e.g. Travis
SSViewer::add_themes(['tests/WidgetControllerTest']);
}
SSViewer::add_themes(['silverstripe/widgets:/tests/WidgetControllerTest']);
return new SSViewer(TestPage::class);
}
}

0 comments on commit 18296d0

Please sign in to comment.