Skip to content

Commit 6e48b53

Browse files
authored
MCLOUD-7521: Add using a new tests infrastructure to MCP repo (#16)
1 parent b31f562 commit 6e48b53

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Test/Functional/Acceptance/AcceptanceCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public function testPatches(\CliTester $I, \Codeception\Example $data): void
3030
{
3131
$this->prepareTemplate($I, $data['templateVersion'], $data['magentoVersion'] ?? null);
3232
$I->copyFileToWorkDir('files/patches/.apply_quality_patches.env.yaml', '.magento.env.yaml');
33-
$I->runEceDockerCommand(sprintf(
34-
'build:compose --mode=production --env-vars="%s"',
33+
$I->generateDockerCompose(sprintf(
34+
'--mode=production --env-vars="%s"',
3535
$this->convertEnvFromArrayToJson(['MAGENTO_CLOUD_PROJECT' => 'travis-testing'])
3636
));
3737
$I->assertTrue($I->runDockerComposeCommand('run build cloud-build'));

src/Test/Functional/Acceptance/PatchApplierCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function _before(\CliTester $I): void
3131
*/
3232
public function testApplyingPatch(\CliTester $I): void
3333
{
34-
$I->runEceDockerCommand('build:compose --mode=production');
34+
$I->generateDockerCompose('--mode=production');
3535
$I->copyFileToWorkDir('files/patches/target_file.md', 'target_file.md');
3636
$I->copyFileToWorkDir('files/patches/patch.patch', 'm2-hotfixes/patch.patch');
3737

@@ -52,7 +52,7 @@ public function testApplyingPatch(\CliTester $I): void
5252
*/
5353
public function testApplyingExistingPatch(\CliTester $I): void
5454
{
55-
$I->runEceDockerCommand('build:compose --mode=production');
55+
$I->generateDockerCompose('--mode=production');
5656
$I->copyFileToWorkDir('files/patches/target_file_applied_patch.md', 'target_file.md');
5757
$I->copyFileToWorkDir('files/patches/patch.patch', 'm2-hotfixes/patch.patch');
5858

0 commit comments

Comments
 (0)