Skip to content

Commit cf94e24

Browse files
Merge pull request #272 from magento/MCLOUD-6633
MCLOUD-6633: Add Magento 2.4.0 and PHP 7.4 support for FT magento-cloud-docker
2 parents 1d47ddd + fb20063 commit cf94e24

File tree

8 files changed

+94
-4
lines changed

8 files changed

+94
-4
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
7979
- php: '7.3'
8080
env:
8181
- TEST_SUITE=functional
82+
- php: '7.4'
83+
env:
84+
- TEST_SUITE=functional
8285

8386
install: if [[ $TEST_SUITE != "build-images" ]]; then composer update; fi;
8487

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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\CloudDocker\Test\Functional\Acceptance;
9+
10+
/**
11+
* @group php73
12+
*/
13+
class Acceptance73Cest extends AcceptanceCest
14+
{
15+
protected const TEMPLATE_VERSION = '2.3.5';
16+
}

src/Test/Functional/Acceptance/AcceptanceCest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Robo\Exception\TaskException;
1111

1212
/**
13-
* @group php73
13+
* @group php74
1414
*/
1515
class AcceptanceCest extends AbstractCest
1616
{
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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\CloudDocker\Test\Functional\Acceptance;
9+
10+
use CliTester;
11+
use Codeception\Example;
12+
use Robo\Exception\TaskException;
13+
14+
/**
15+
* @group php73
16+
*/
17+
class Elasticsearch73Cest extends ElasticsearchCest
18+
{
19+
/**
20+
* Template version for testing
21+
*/
22+
protected const TEMPLATE_VERSION = '2.3.5';
23+
24+
/**
25+
* @return array
26+
*/
27+
protected function dataProvider(): array
28+
{
29+
return [
30+
[
31+
'version' => '6.5',
32+
'xms' => '518m',
33+
'xmx' => '518m',
34+
'param' => [
35+
'key' => 'node.store.allow_mmapfs',
36+
'value' => 'false',
37+
'needle' => '"store":{"allow_mmapfs":"false"}',
38+
]
39+
],
40+
[
41+
'version' => '7.5',
42+
'xms' => '520m',
43+
'xmx' => '520m',
44+
'param' => [
45+
'key' => 'node.store.allow_mmap',
46+
'value' => 'false',
47+
'needle' => '"store":{"allow_mmap":"false"}',
48+
]
49+
],
50+
];
51+
}
52+
}

src/Test/Functional/Acceptance/ElasticsearchCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
use Robo\Exception\TaskException;
1313

1414
/**
15-
* @group php73
15+
* @group php74
1616
*/
1717
class ElasticsearchCest extends AbstractCest
1818
{
1919
/**
2020
* Template version for testing
2121
*/
22-
protected const TEMPLATE_VERSION = '2.3.3';
22+
protected const TEMPLATE_VERSION = '2.4.0';
2323

2424
/**
2525
* @param CliTester $I
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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\CloudDocker\Test\Functional\Acceptance;
9+
10+
/**
11+
* @group php73
12+
*/
13+
class SplitDb73Cest extends SplitDbCest
14+
{
15+
protected const TEMPLATE_VERSION = '2.3.5';
16+
}

src/Test/Functional/Acceptance/SplitDbCest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Robo\Exception\TaskException;
1212

1313
/**
14-
* @group php73
14+
* @group php74
1515
*/
1616
class SplitDbCest extends AbstractCest
1717
{

tests/travis/functional.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ case $TRAVIS_PHP_VERSION in
1616
7.3)
1717
./vendor/bin/codecept run -g php73 --steps
1818
;;
19+
7.4)
20+
./vendor/bin/codecept run -g php74 --steps
21+
;;
1922
esac

0 commit comments

Comments
 (0)