1010use Magento \CloudDocker \Test \Functional \Codeception \Docker ;
1111
1212/**
13- * This test runs on the latest version of PHP
13+ * @group php74
1414 */
1515class PatchApplierCest extends AbstractCest
1616{
@@ -21,6 +21,7 @@ public function _before(\CliTester $I): void
2121 {
2222 parent ::_before ($ I );
2323
24+ $ this ->prepareTemplate ($ I , 'master ' );
2425 $ I ->copyFileToWorkDir ('files/debug_logging/.magento.env.yaml ' , '.magento.env.yaml ' );
2526 }
2627
@@ -42,7 +43,7 @@ public function testApplyingPatch(\CliTester $I): void
4243 $ I ->assertContains ('# Hello Magento ' , $ targetFile );
4344 $ I ->assertContains ('## Additional Info ' , $ targetFile );
4445 $ log = $ I ->grabFileContent ('/var/log/cloud.log ' , Docker::BUILD_CONTAINER );
45- $ I ->assertContains ('Patch "/app/ m2-hotfixes/patch.patch" applied ' , $ log );
46+ $ I ->assertContains ('Patch ../ m2-hotfixes/patch.patch has been applied ' , $ log );
4647 }
4748
4849 /**
@@ -63,7 +64,7 @@ public function testApplyingExistingPatch(\CliTester $I): void
6364 $ I ->assertContains ('# Hello Magento ' , $ targetFile );
6465 $ I ->assertContains ('## Additional Info ' , $ targetFile );
6566 $ I ->assertContains (
66- 'Patch "/app/ m2-hotfixes/patch.patch" was already applied ' ,
67+ 'Patch ../ m2-hotfixes/patch.patch was already applied ' ,
6768 $ I ->grabFileContent ('/var/log/cloud.log ' , Docker::BUILD_CONTAINER )
6869 );
6970 }
0 commit comments