Skip to content

Commit 8bd68c3

Browse files
authored
MCLOUD-9902: Add FT to Magento Cloud Tools for PHP 8.2 & Magento 2.4.6 (#109)
1 parent 473071d commit 8bd68c3

25 files changed

+453
-47
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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\MagentoCloud\Test\Functional\Acceptance;
9+
10+
use CliTester;
11+
use Robo\Exception\TaskException;
12+
use Codeception\Example;
13+
use Magento\CloudDocker\Test\Functional\Codeception\Docker;
14+
15+
/**
16+
* @inheritDoc
17+
*
18+
* @group php81
19+
*/
20+
class Acceptance81Cest extends AcceptanceCest
21+
{
22+
/**
23+
* @var string
24+
*/
25+
protected $magentoCloudTemplate = '2.4.4';
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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\MagentoCloud\Test\Functional\Acceptance;
9+
10+
use Magento\CloudDocker\Test\Functional\Codeception\Docker;
11+
use Robo\Exception\TaskException;
12+
use CliTester;
13+
14+
/**
15+
* @inheritDoc
16+
*
17+
* @group php81
18+
* @group edition-ce
19+
*/
20+
class AcceptanceCe81Cest extends AcceptanceCeCest
21+
{
22+
/**
23+
* @var string
24+
*/
25+
protected $magentoCloudTemplate = '2.4.4';
26+
}

src/Test/Functional/Acceptance/AcceptanceCeCest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
/**
1515
* @inheritDoc
1616
*
17-
* @group php81
17+
* @group php82
1818
* @group edition-ce
1919
*/
2020
class AcceptanceCeCest extends AbstractCest
2121
{
2222
/**
2323
* @var string
2424
*/
25-
protected $magentoCloudTemplate = '2.4.4';
25+
protected $magentoCloudTemplate = '2.4.6';
2626

2727
/**
2828
* @var boolean
@@ -45,6 +45,7 @@ public function _before(\CliTester $I): void
4545
* @param CliTester $I
4646
*
4747
* @throws TaskException
48+
* @skip Magento CE does not work on the Cloud and MCD
4849
*/
4950
public function testWithSplitBuildCommand(\CliTester $I): void
5051
{

src/Test/Functional/Acceptance/AcceptanceCest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
* 3. Test config dump
2121
* 4. Test content presence
2222
*
23-
* @group php81
23+
* @group php82
2424
*/
2525
class AcceptanceCest extends AbstractCest
2626
{
2727
/**
2828
* @var string
2929
*/
30-
protected $magentoCloudTemplate = '2.4.4';
30+
protected $magentoCloudTemplate = '2.4.6';
3131

3232
/**
3333
* @param CliTester $I
@@ -123,9 +123,6 @@ protected function defaultDataProvider(): array
123123
],
124124
'lock' => [
125125
'provider' => 'db',
126-
'config' => [
127-
'prefix' => null,
128-
],
129126
],
130127
],
131128
],
@@ -182,9 +179,6 @@ protected function defaultDataProvider(): array
182179
],
183180
'lock' => [
184181
'provider' => 'db',
185-
'config' => [
186-
'prefix' => null,
187-
],
188182
],
189183
],
190184
],
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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\MagentoCloud\Test\Functional\Acceptance;
9+
10+
/**
11+
* This test runs on the latest version of PHP
12+
* @group php81
13+
*/
14+
class AdminCredential81Cest extends AdminCredentialCest
15+
{
16+
/**
17+
* @var string
18+
*/
19+
protected $magentoCloudTemplate = '2.4.4';
20+
}

src/Test/Functional/Acceptance/AdminCredentialCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99

1010
/**
1111
* This test runs on the latest version of PHP
12-
* @group php81
12+
* @group php82
1313
*/
1414
class AdminCredentialCest extends AbstractCest
1515
{
1616
/**
1717
* @var string
1818
*/
19-
protected $magentoCloudTemplate = '2.4.4';
19+
protected $magentoCloudTemplate = '2.4.6';
2020

2121
/**
2222
* @param \CliTester $I
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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\MagentoCloud\Test\Functional\Acceptance;
9+
10+
use CliTester;
11+
use Codeception\Example;
12+
use Exception;
13+
use Robo\Exception\TaskException;
14+
15+
/**
16+
* Checks database backup functionality
17+
* @group php81
18+
*/
19+
class BackupDb244Cest extends BackupDbCest
20+
{
21+
/**
22+
* @return array
23+
*/
24+
protected function dataProviderMagentoCloudVersions(): array
25+
{
26+
return [
27+
['version' => '2.4.4'],
28+
];
29+
}
30+
}

src/Test/Functional/Acceptance/BackupDbCest.php

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

1515
/**
1616
* Checks database backup functionality
17-
* @group php81
17+
* @group php82
1818
*/
1919
class BackupDbCest extends AbstractCest
2020
{
@@ -68,7 +68,7 @@ public function testBackUpDb(CliTester $I, Example $data): void
6868
protected function dataProviderMagentoCloudVersions(): array
6969
{
7070
return [
71-
['version' => '2.4.4'],
71+
['version' => '2.4.6'],
7272
];
7373
}
7474

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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\MagentoCloud\Test\Functional\Acceptance;
9+
10+
/**
11+
* @group php81
12+
*/
13+
class Cron244Cest extends CronCest
14+
{
15+
/**
16+
* @return array
17+
*/
18+
protected function cronDataProvider(): array
19+
{
20+
return [
21+
[
22+
'version' => '2.4.4',
23+
'variables' => [
24+
'MAGENTO_CLOUD_VARIABLES' => [
25+
'ADMIN_EMAIL' => 'admin@example.com',
26+
'ADMIN_LOCALE' => 'fr_FR'
27+
],
28+
],
29+
],
30+
];
31+
}
32+
}

src/Test/Functional/Acceptance/CronCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* This test runs on the latest version of PHP
1212
*
13-
* @group php81
13+
* @group php82
1414
*/
1515
class CronCest extends AbstractCest
1616
{
@@ -138,7 +138,7 @@ protected function cronDataProvider(): array
138138
{
139139
return [
140140
[
141-
'version' => '2.4.4',
141+
'version' => '2.4.6',
142142
'variables' => [
143143
'MAGENTO_CLOUD_VARIABLES' => [
144144
'ADMIN_EMAIL' => 'admin@example.com',

0 commit comments

Comments
 (0)