10
10
use Magento \CloudDocker \Test \Functional \Codeception \Docker ;
11
11
12
12
/**
13
- * This test runs on the latest version of PHP
13
+ * @group php74
14
14
*/
15
15
class PatchApplierCest extends AbstractCest
16
16
{
@@ -21,6 +21,7 @@ public function _before(\CliTester $I): void
21
21
{
22
22
parent ::_before ($ I );
23
23
24
+ $ this ->prepareTemplate ($ I , 'master ' );
24
25
$ I ->copyFileToWorkDir ('files/debug_logging/.magento.env.yaml ' , '.magento.env.yaml ' );
25
26
}
26
27
@@ -42,7 +43,7 @@ public function testApplyingPatch(\CliTester $I): void
42
43
$ I ->assertContains ('# Hello Magento ' , $ targetFile );
43
44
$ I ->assertContains ('## Additional Info ' , $ targetFile );
44
45
$ 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 );
46
47
}
47
48
48
49
/**
@@ -63,7 +64,7 @@ public function testApplyingExistingPatch(\CliTester $I): void
63
64
$ I ->assertContains ('# Hello Magento ' , $ targetFile );
64
65
$ I ->assertContains ('## Additional Info ' , $ targetFile );
65
66
$ I ->assertContains (
66
- 'Patch "/app/ m2-hotfixes/patch.patch" was already applied ' ,
67
+ 'Patch ../ m2-hotfixes/patch.patch was already applied ' ,
67
68
$ I ->grabFileContent ('/var/log/cloud.log ' , Docker::BUILD_CONTAINER )
68
69
);
69
70
}
0 commit comments