Revert "[FOLLOWUP][TASK] Base Install Tool on Bootstrap" 88/44588/2
authorMarkus Klein <markus.klein@typo3.org>
Fri, 6 Nov 2015 19:13:22 +0000 (20:13 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Fri, 6 Nov 2015 19:23:38 +0000 (20:23 +0100)
This reverts commit bd841ed647a2902be4e373357a622a0d238a0aa7.

The status names were changed back again, so the
original tests are just fine.

Change-Id: I3d3356829a5b2ff0be8628790802c34c9c41200e
Resolves: #62067
Releases: master
Reviewed-on: https://review.typo3.org/44588
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/install/Tests/Unit/Status/StatusUtilityTest.php

index 0ded471..264c64f 100644 (file)
@@ -33,10 +33,10 @@ class StatusUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
         $noticeMock = $this->getMock(\TYPO3\CMS\Install\Status\NoticeStatus::class, array('dummy'));
         $statusUtility = new StatusUtility();
         $return = $statusUtility->sortBySeverity(array($noticeMock, $infoMock, $okMock, $warningMock, $errorMock));
-        $this->assertSame(array($errorMock), $return['danger']);
+        $this->assertSame(array($errorMock), $return['error']);
         $this->assertSame(array($warningMock), $return['warning']);
-        $this->assertSame(array($okMock), $return['success']);
-        $this->assertSame(array($infoMock), $return['info']);
+        $this->assertSame(array($okMock), $return['ok']);
+        $this->assertSame(array($infoMock), $return['information']);
         $this->assertSame(array($noticeMock), $return['notice']);
     }
 
@@ -58,7 +58,7 @@ class StatusUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
         $errorMock = $this->getMock(\TYPO3\CMS\Install\Status\ErrorStatus::class, array('dummy'));
         $warningMock = $this->getMock(\TYPO3\CMS\Install\Status\WarningStatus::class, array('dummy'));
         $statusUtility = new StatusUtility();
-        $return = $statusUtility->filterBySeverity(array($errorMock, $warningMock), 'danger');
+        $return = $statusUtility->filterBySeverity(array($errorMock, $warningMock), 'error');
         $this->assertSame(array($errorMock), $return);
     }
 }