TYPO3 CMS  TYPO3_6-2
Typo3StatusTest.php
Go to the documentation of this file.
1 <?php
3 
21 
25  public function setUp() {
26  $GLOBALS['LANG'] = $this->getMock('TYPO3\\CMS\\Lang\\LanguageService', array(), array(), '', FALSE);
27  }
28 
33  $GLOBALS['TYPO3_CONF_VARS']['BE']['XCLASS'] = array();
34  $GLOBALS['TYPO3_CONF_VARS']['FE']['XCLASS'] = array();
35  $fixture = new \TYPO3\CMS\Reports\Report\Status\Typo3Status;
36  $result = $fixture->getStatus();
37  $statusObject = $result['oldXclassStatus'];
38  $this->assertSame(\TYPO3\CMS\Reports\Status::OK, $statusObject->getSeverity());
39  }
40 
45  $GLOBALS['TYPO3_CONF_VARS']['BE']['XCLASS'] = array('foo' => 'bar');
46  $fixture = new \TYPO3\CMS\Reports\Report\Status\Typo3Status;
47  $result = $fixture->getStatus();
48  $statusObject = $result['oldXclassStatus'];
49  $this->assertSame(\TYPO3\CMS\Reports\Status::NOTICE, $statusObject->getSeverity());
50  }
51 
56  $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'] = array();
57  $fixture = new \TYPO3\CMS\Reports\Report\Status\Typo3Status;
58  $result = $fixture->getStatus();
59  $statusObject = $result['registeredXclass'];
60  $this->assertSame(\TYPO3\CMS\Reports\Status::OK, $statusObject->getSeverity());
61  }
62 
67  $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'] = array(
68  'foo' => array(
69  'className' => 'bar',
70  )
71  );
72  $fixture = new \TYPO3\CMS\Reports\Report\Status\Typo3Status;
73  $result = $fixture->getStatus();
74  $statusObject = $result['registeredXclass'];
75  $this->assertSame(\TYPO3\CMS\Reports\Status::NOTICE, $statusObject->getSeverity());
76  }
77 }
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren&#39;t numeric.
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]