Skip to content

Commit 0d7ca66

Browse files
authored
Merge pull request #98 from magento-commerce/abstract-cest
Use abstract parent cest to fix tests
2 parents 6b3b1d9 + 6c77fd8 commit 0d7ca66

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\CloudPatches\Test\Functional\Acceptance;
9+
10+
/**
11+
* @group php83
12+
*/
13+
class Acceptance83Cest extends AcceptanceCest
14+
{
15+
/**
16+
* @return array
17+
*/
18+
protected function patchesDataProvider(): array
19+
{
20+
return [
21+
['templateVersion' => '2.4.7', 'magentoVersion' => '2.4.7'],
22+
];
23+
}
24+
}

src/Test/Functional/Acceptance/AcceptanceCest.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77

88
namespace Magento\CloudPatches\Test\Functional\Acceptance;
99

10-
/**
11-
* @group php83
12-
*/
13-
class AcceptanceCest extends AbstractCest
10+
abstract class AcceptanceCest extends AbstractCest
1411
{
1512
/**
1613
* @param \CliTester $I
@@ -46,10 +43,5 @@ public function testPatches(\CliTester $I, \Codeception\Example $data): void
4643
/**
4744
* @return array
4845
*/
49-
protected function patchesDataProvider(): array
50-
{
51-
return [
52-
['templateVersion' => '2.4.7', 'magentoVersion' => '2.4.7'],
53-
];
54-
}
46+
abstract protected function patchesDataProvider(): array;
5547
}

0 commit comments

Comments
 (0)