Permalink
Browse files

MINOR Removing dodgy conditional tests in SSViewerTest

  • Loading branch information...
1 parent 4d4f9e0 commit b68e426844337893a90ea9e19546b67a081d0a61 @halkyon halkyon committed May 19, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −4 tests/view/SSViewerTest.php
View
4 tests/view/SSViewerTest.php
@@ -119,10 +119,6 @@ function testCoreGlobalVariableCalls() {
$this->assertEquals(i18n::get_locale(), $this->render('{$i18nLocale}'), 'i18n template functions result correct result');
$this->assertEquals(i18n::get_locale(), $this->render('{$get_locale}'), 'i18n template functions result correct result');
- //only run this test if we have a controller - i.e. if we are running this test from a web-browser
- if (Controller::has_curr()) $this->assertEquals((string)Controller::curr(), $this->render('{$CurrentPage}'), 'i18n template functions result correct result');
- if (Controller::has_curr()) $this->assertEquals((string)Controller::curr(), $this->render('{$currentPage}'), 'i18n template functions result correct result');
-
$this->assertEquals((string)Member::currentUser(), $this->render('{$CurrentMember}'), 'Member template functions result correct result');
$this->assertEquals((string)Member::currentUser(), $this->render('{$CurrentUser}'), 'Member template functions result correct result');
$this->assertEquals((string)Member::currentUser(), $this->render('{$currentMember}'), 'Member template functions result correct result');

0 comments on commit b68e426

Please sign in to comment.