1010use Magento \CloudDocker \Test \Functional \Codeception \Docker ;
1111
1212/**
13- * @group php74
13+ * @group php81
1414 */
1515class PatchApplierCest extends AbstractCest
1616{
@@ -21,7 +21,7 @@ public function _before(\CliTester $I): void
2121 {
2222 parent ::_before ($ I );
2323
24- $ this ->prepareTemplate ($ I , 'master ' );
24+ $ this ->prepareTemplate ($ I , '2.4.4 ' );
2525 $ I ->copyFileToWorkDir ('files/debug_logging/.magento.env.yaml ' , '.magento.env.yaml ' );
2626 }
2727
@@ -40,10 +40,10 @@ public function testApplyingPatch(\CliTester $I): void
4040 $ I ->startEnvironment ();
4141
4242 $ targetFile = $ I ->grabFileContent ('/target_file.md ' , Docker::BUILD_CONTAINER );
43- $ I ->assertContains ('# Hello Magento ' , $ targetFile );
44- $ I ->assertContains ('## Additional Info ' , $ targetFile );
43+ $ I ->assertStringContainsString ('# Hello Magento ' , $ targetFile );
44+ $ I ->assertStringContainsString ('## Additional Info ' , $ targetFile );
4545 $ log = $ I ->grabFileContent ('/var/log/cloud.log ' , Docker::BUILD_CONTAINER );
46- $ I ->assertContains ('Patch ../m2-hotfixes/patch.patch has been applied ' , $ log );
46+ $ I ->assertStringContainsString ('Patch ../m2-hotfixes/patch.patch has been applied ' , $ log );
4747 }
4848
4949 /**
@@ -61,9 +61,9 @@ public function testApplyingExistingPatch(\CliTester $I): void
6161 $ I ->startEnvironment ();
6262
6363 $ targetFile = $ I ->grabFileContent ('/target_file.md ' , Docker::BUILD_CONTAINER );
64- $ I ->assertContains ('# Hello Magento ' , $ targetFile );
65- $ I ->assertContains ('## Additional Info ' , $ targetFile );
66- $ I ->assertContains (
64+ $ I ->assertStringContainsString ('# Hello Magento ' , $ targetFile );
65+ $ I ->assertStringContainsString ('## Additional Info ' , $ targetFile );
66+ $ I ->assertStringContainsString (
6767 'Patch ../m2-hotfixes/patch.patch was already applied ' ,
6868 $ I ->grabFileContent ('/var/log/cloud.log ' , Docker::BUILD_CONTAINER )
6969 );
0 commit comments