[TASK] Upgrade phpunit 6 to 7
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Tests / Unit / Form / Container / PaletteAndSingleContainerTest.php
index 6e12158..78b1fa3 100644 (file)
@@ -82,7 +82,7 @@ class PaletteAndSingleContainerTest extends UnitTestCase
         $nodeFactoryProphecy->create($expectedChildDataArray)->willReturn($singleFieldContainerProphecy->reveal());
         $containerResult = (new PaletteAndSingleContainer($nodeFactoryProphecy->reveal(), $input))->render();
         // Expect label is in answer HTML
-        $this->stringContains($labelReference, $containerResult['html']);
+        $this->assertContains($labelReference, $containerResult['html']);
     }
 
     /**
@@ -140,7 +140,7 @@ class PaletteAndSingleContainerTest extends UnitTestCase
         $nodeFactoryProphecy->create($expectedChildDataArray)->willReturn($singleFieldContainerProphecy->reveal());
         $containerResult = (new PaletteAndSingleContainer($nodeFactoryProphecy->reveal(), $input))->render();
         // Expect label is in answer HTML
-        $this->stringContains($labelReference, $containerResult['html']);
+        $this->assertContains($labelReference, $containerResult['html']);
     }
 
     /**
@@ -199,6 +199,6 @@ class PaletteAndSingleContainerTest extends UnitTestCase
         $nodeFactoryProphecy->create($expectedChildDataArray)->willReturn($singleFieldContainerProphecy->reveal());
         $containerResult = (new PaletteAndSingleContainer($nodeFactoryProphecy->reveal(), $input))->render();
         // Expect label is in answer HTML
-        $this->stringContains($labelReferenceFieldArray, $containerResult['html']);
+        $this->assertContains($labelReferenceFieldArray, $containerResult['html']);
     }
 }