[FOLLOWUP][TASK] Base Install Tool on Bootstrap 83/44583/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 6 Nov 2015 15:39:18 +0000 (16:39 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 6 Nov 2015 15:42:19 +0000 (16:42 +0100)
Well, we missed adapting the unit tests ...

Change-Id: Idcd77a1a77565892cc0ec5c4c4324b4a8f9fcda3
Resolves: #62067
Releases: master
Reviewed-on: https://review.typo3.org/44583
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Frank N├Ągler <frank.naegler@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
typo3/sysext/install/Tests/Unit/Status/StatusUtilityTest.php

index 264c64f..0ded471 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['error']);
+        $this->assertSame(array($errorMock), $return['danger']);
         $this->assertSame(array($warningMock), $return['warning']);
-        $this->assertSame(array($okMock), $return['ok']);
-        $this->assertSame(array($infoMock), $return['information']);
+        $this->assertSame(array($okMock), $return['success']);
+        $this->assertSame(array($infoMock), $return['info']);
         $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), 'error');
+        $return = $statusUtility->filterBySeverity(array($errorMock, $warningMock), 'danger');
         $this->assertSame(array($errorMock), $return);
     }
 }