[BUGFIX] Test follow-up to #57152 11/28611/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 21 Mar 2014 16:12:06 +0000 (17:12 +0100)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Fri, 21 Mar 2014 16:19:18 +0000 (17:19 +0100)
Fix a failing unit test after change c23414d5a73

Change-Id: I427663a1a528b24a0e63d2fc9ed2a6371902a4f4
Resolves: #57159
Related: #57152
Releases: 6.2
Reviewed-on: https://review.typo3.org/28611
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php

index fdf7d35..190f46c 100644 (file)
@@ -160,7 +160,7 @@ class DirectoryNodeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        /**
         * @test
         */
-       public function getStatusReturnsArrayWithErrorStatusIfDirectoryNotExists() {
+       public function getStatusReturnsArrayWithWarningStatusIfDirectoryNotExists() {
                /** @var $node \TYPO3\CMS\Install\FolderStructure\DirectoryNode|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface|\PHPUnit_Framework_MockObject_MockObject */
                $node = $this->getAccessibleMock(
                        'TYPO3\\CMS\\Install\\FolderStructure\\DirectoryNode',
@@ -178,7 +178,7 @@ class DirectoryNodeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $statusArray = $node->getStatus();
                /** @var $status \TYPO3\CMS\Install\Status\StatusInterface */
                $status = $statusArray[0];
-               $this->assertInstanceOf('\TYPO3\CMS\Install\Status\ErrorStatus', $status);
+               $this->assertInstanceOf('\TYPO3\CMS\Install\Status\WarningStatus', $status);
        }
 
        /**