[TASK] Make ProcessedFileTest.php notice free 10/56210/2
authorSascha Löffler <lsascha@gmail.com>
Fri, 16 Mar 2018 11:02:39 +0000 (12:02 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 16 Mar 2018 12:42:06 +0000 (13:42 +0100)
Resolves: #84333
Releases: master
Change-Id: I6a99c31dfd353e57ce2d762ff47745c8f884ee29
Reviewed-on: https://review.typo3.org/56210
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Tests/Unit/Resource/ProcessedFileTest.php

index 34ee52a..b479d17 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Resource;
 
 /*
@@ -18,18 +19,14 @@ use TYPO3\CMS\Core\Resource\File;
 use TYPO3\CMS\Core\Resource\Folder;
 use TYPO3\CMS\Core\Resource\ProcessedFile;
 use TYPO3\CMS\Core\Resource\ResourceStorage;
+use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 
 /**
  * Testcase for the ProcessedFile class of the TYPO3 FAL
  */
-class ProcessedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
+class ProcessedFileTest extends UnitTestCase
 {
     /**
-     * Subject is not notice free, disable E_NOTICES
-     */
-    protected static $suppressNotices = true;
-
-    /**
      * @var \PHPUnit_Framework_MockObject_MockObject|Folder
      */
     protected $folderMock;
@@ -62,6 +59,8 @@ class ProcessedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'identifier' => 'dummy.txt',
             'name' => $this->getUniqueId('dummy_'),
             'storage' => $this->storageMock->getUid(),
+            'configuration' => null,
+            'originalfilesha1' => null,
         ];
     }