Index: tests/t3lib/t3lib_matchcondition_testcase.php =================================================================== --- tests/t3lib/t3lib_matchcondition_testcase.php (revision 7616) +++ tests/t3lib/t3lib_matchcondition_testcase.php (working copy) @@ -116,7 +116,7 @@ /** * Tests whether a condition matches Internet Explorer 7 on Windows. - * + * * @return void * @test */ @@ -128,7 +128,7 @@ /** * Tests whether a condition does not match Internet Explorer 7 on Windows. - * + * * @return void * @test */ @@ -140,7 +140,7 @@ /** * Tests whether the browserInfo hook is called. - * + * * @return void * @test */ @@ -294,6 +294,15 @@ } /** + * Tests whether user is not logged in + * @test + */ + public function loginUserConditionMatchIfNotUserIsNotLoggedIn() { + $GLOBALS['TSFE']->loginUser = FALSE; + $this->assertTrue($this->matchCondition->match('[loginUser = ]')); + } + + /** * Tests whether numerical comparison matches. * @test */