Skip to content

Commit

Permalink
MCP Release 1.0.27 (#99)
Browse files Browse the repository at this point in the history
* update template version

* update template

* update compatible versions

* Use abstract parent cest to fix tests

* Add abstract patchesDataProvider signature

* phpcs fix for missing doc (#101)

---------

Co-authored-by: Sivaram Manijeganathan <[email protected]>
Co-authored-by: Andrii Shevtsov <[email protected]>
Co-authored-by: Tom Reece <[email protected]>
Co-authored-by: Tom Reece <[email protected]>
  • Loading branch information
5 people authored May 21, 2024
1 parent a77832e commit e5c3c7e
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 21 deletions.
21 changes: 10 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"license": "OSL-3.0",
"repositories": {
"repo.magento.com": {
"type": "composer",
"url": "https://repo.magento.com/"
"type": "composer",
"url": "https://repo.magento.com/"
}
},
"require": {
Expand All @@ -18,19 +18,18 @@
"symfony/config": "^3.3||^4.4||^5.0||^6.0",
"symfony/console": "^2.6||^4.0||^5.0||^6.0",
"symfony/dependency-injection": "^3.3||^4.3||^5.0||^6.0",
"symfony/process": "^2.1||^4.1||^5.0||^6.0",
"symfony/process": "^2.1 || ^4.1 || ^5.1 || ^5.4 || ^6.4",
"symfony/proxy-manager-bridge": "^3.3||^4.3||^5.0||^6.0",
"symfony/yaml": "^3.3||^4.0||^5.0||^6.0",
"monolog/monolog": "^1.25||^2.3||^2.7",
"magento/quality-patches": "^1.1.0"
"monolog/monolog": "^1.25||^2.3||^2.7"
},
"require-dev": {
"codeception/codeception": "^4.1",
"codeception/module-asserts": "^1.2",
"codeception/module-db": "^1.0",
"codeception/module-phpbrowser": "^1.0",
"codeception/module-rest": "^1.2",
"consolidation/robo": "^1.2 || ^2.0",
"codeception/codeception": "^4.1 || ^5.1",
"codeception/module-asserts": "^1.2 || ^3.0",
"codeception/module-db": "^1.0 || ^3.0",
"codeception/module-phpbrowser": "^1.0 || ^3.0",
"codeception/module-rest": "^1.2 || ^3.0",
"consolidation/robo": "^1.2 || ^3.0",
"phpmd/phpmd": "@stable",
"phpunit/phpunit": "^8.5 || ^9.5",
"squizlabs/php_codesniffer": "^3.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Test/Functional/Acceptance/Acceptance82Cest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected function patchesDataProvider(): array
return [
['templateVersion' => '2.4.6', 'magentoVersion' => '2.4.6'],
['templateVersion' => '2.4.6', 'magentoVersion' => '2.4.6-p1'],
['templateVersion' => '2.4.7-beta', 'magentoVersion' => null],
['templateVersion' => '2.4.7', 'magentoVersion' => null],
];
}
}
24 changes: 24 additions & 0 deletions src/Test/Functional/Acceptance/Acceptance83Cest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\CloudPatches\Test\Functional\Acceptance;

/**
* @group php83
*/
class Acceptance83Cest extends AcceptanceCest
{
/**
* @return array
*/
protected function patchesDataProvider(): array
{
return [
['templateVersion' => '2.4.7', 'magentoVersion' => '2.4.7'],
];
}
}
13 changes: 5 additions & 8 deletions src/Test/Functional/Acceptance/AcceptanceCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
namespace Magento\CloudPatches\Test\Functional\Acceptance;

/**
* @group php83
* Abstract AcceptanceCest
*
* @abstract
*/
class AcceptanceCest extends AbstractCest
abstract class AcceptanceCest extends AbstractCest
{
/**
* @param \CliTester $I
Expand Down Expand Up @@ -46,10 +48,5 @@ public function testPatches(\CliTester $I, \Codeception\Example $data): void
/**
* @return array
*/
protected function patchesDataProvider(): array
{
return [
['templateVersion' => '2.4.7-beta-test', 'magentoVersion' => '2.4.7-beta401'],
];
}
abstract protected function patchesDataProvider(): array;
}
2 changes: 1 addition & 1 deletion src/Test/Functional/Acceptance/PatchApplierCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function _before(\CliTester $I): void
{
parent::_before($I);

$this->prepareTemplate($I, '2.4.7-beta-test');
$this->prepareTemplate($I, '2.4.7');
$I->copyFileToWorkDir('files/debug_logging/.magento.env.yaml', '.magento.env.yaml');
}

Expand Down

0 comments on commit e5c3c7e

Please sign in to comment.