2 namespace TYPO3\CMS\Reports\Tests\Unit\Report\Status;
27 $GLOBALS[
'LANG'] = $this->getMock(\TYPO3\CMS\Lang\LanguageService::class, array(), array(),
'',
false);
35 $GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'XCLASS'] = array();
36 $GLOBALS[
'TYPO3_CONF_VARS'][
'FE'][
'XCLASS'] = array();
37 $fixture = new \TYPO3\CMS\Reports\Report\Status\Typo3Status;
38 $result = $fixture->getStatus();
39 $statusObject = $result[
'oldXclassStatus'];
40 $this->assertSame(\TYPO3\CMS\Reports\
Status::OK, $statusObject->getSeverity());
48 $GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'XCLASS'] = array(
'foo' =>
'bar');
49 $fixture = new \TYPO3\CMS\Reports\Report\Status\Typo3Status;
50 $result = $fixture->getStatus();
51 $statusObject = $result[
'oldXclassStatus'];
52 $this->assertSame(\TYPO3\CMS\Reports\
Status::NOTICE, $statusObject->getSeverity());
60 $GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'Objects'] = array();
61 $fixture = new \TYPO3\CMS\Reports\Report\Status\Typo3Status;
62 $result = $fixture->getStatus();
63 $statusObject = $result[
'registeredXclass'];
64 $this->assertSame(\TYPO3\CMS\Reports\
Status::OK, $statusObject->getSeverity());
72 $GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'Objects'] = array(
77 $fixture = new \TYPO3\CMS\Reports\Report\Status\Typo3Status;
78 $result = $fixture->getStatus();
79 $statusObject = $result[
'registeredXclass'];
80 $this->assertSame(\TYPO3\CMS\Reports\
Status::NOTICE, $statusObject->getSeverity());