/**
  * @test
  */
 public function vieHelperReturnsTrueForEditorsAndKnownTable()
 {
     $backup = array($GLOBALS['BE_USER']->user['admin'], $GLOBALS['BE_USER']->groupData['tables_modify']);
     $GLOBALS['BE_USER']->user['admin'] = 0;
     $GLOBALS['BE_USER']->groupData['tables_modify'] = 'fo,bar,tt_content,pages';
     $this->viewHelper->expects($this->at(0))->method('renderThenChild')->will($this->returnValue('foo'));
     $this->assertEquals('foo', $this->viewHelper->render('tt_content'));
     $GLOBALS['BE_USER']->user['admin'] = $backup[0];
     $GLOBALS['BE_USER']->groupData['tables_modify'] = $backup[1];
 }