Skip to content

Commit 6db7993

Browse files
committed
Updated fix
1 parent 7bb44e2 commit 6db7993

File tree

2 files changed

+2
-137
lines changed

2 files changed

+2
-137
lines changed

src/Test/Functional/Acceptance/AcceptanceCest.php

Lines changed: 1 addition & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -103,142 +103,7 @@ public function testDefault(\CliTester $I, \Codeception\Example $data): void
103103
*
104104
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
105105
*/
106-
protected function defaultDataProvider(): array
107-
{
108-
return [
109-
'default configuration' => [
110-
'variables' => [
111-
'MAGENTO_CLOUD_VARIABLES' => [
112-
'ADMIN_EMAIL' => 'admin@example.com',
113-
],
114-
],
115-
'expectedConfig' => [
116-
'cron_consumers_runner' => [
117-
'cron_run' => false,
118-
'max_messages' => 10000,
119-
'consumers' => [],
120-
],
121-
'directories' => [
122-
'document_root_is_pub' => true,
123-
],
124-
'lock' => [
125-
'provider' => 'db',
126-
],
127-
],
128-
],
129-
'test cron_consumers_runner with array and there is MAGENTO_CLOUD_LOCKS_DIR' => [
130-
'variables' => [
131-
'MAGENTO_CLOUD_VARIABLES' => [
132-
'ADMIN_EMAIL' => 'admin@example.com',
133-
'CRON_CONSUMERS_RUNNER' => [
134-
'cron_run' => true,
135-
'max_messages' => 5000,
136-
'consumers' => ['test'],
137-
],
138-
],
139-
'MAGENTO_CLOUD_LOCKS_DIR' => '/tmp/locks',
140-
],
141-
'expectedConfig' => [
142-
'cron_consumers_runner' => [
143-
'cron_run' => true,
144-
'max_messages' => 5000,
145-
'consumers' => ['test'],
146-
],
147-
'directories' => [
148-
'document_root_is_pub' => true,
149-
],
150-
'lock' => [
151-
'provider' => 'file',
152-
'config' => [
153-
'path' => '/tmp/locks',
154-
],
155-
],
156-
],
157-
],
158-
'test cron_consumers_runner with wrong array, there is MAGENTO_CLOUD_LOCKS_DIR, LOCK_PROVIDER is db' => [
159-
'variables' => [
160-
'MAGENTO_CLOUD_VARIABLES' => [
161-
'ADMIN_EMAIL' => 'admin@example.com',
162-
'LOCK_PROVIDER' => 'db',
163-
'CRON_CONSUMERS_RUNNER' => [
164-
'cron_run' => 'true',
165-
'max_messages' => 5000,
166-
'consumers' => ['test'],
167-
],
168-
],
169-
'MAGENTO_CLOUD_LOCKS_DIR' => '/tmp/locks',
170-
],
171-
'expectedConfig' => [
172-
'cron_consumers_runner' => [
173-
'cron_run' => false,
174-
'max_messages' => 5000,
175-
'consumers' => ['test'],
176-
],
177-
'directories' => [
178-
'document_root_is_pub' => true,
179-
],
180-
'lock' => [
181-
'provider' => 'db',
182-
],
183-
],
184-
],
185-
'test cron_consumers_runner with string' => [
186-
'variables' => [
187-
'MAGENTO_CLOUD_VARIABLES' => [
188-
'ADMIN_EMAIL' => 'admin@example.com',
189-
'CRON_CONSUMERS_RUNNER' => '{"cron_run":true, "max_messages":100, "consumers":["test2"]}',
190-
],
191-
],
192-
'expectedConfig' => [
193-
'cron_consumers_runner' => [
194-
'cron_run' => true,
195-
'max_messages' => 100,
196-
'consumers' => ['test2'],
197-
],
198-
'directories' => [
199-
'document_root_is_pub' => true,
200-
],
201-
],
202-
],
203-
'test cron_consumers_runner with wrong string' => [
204-
'variables' => [
205-
'MAGENTO_CLOUD_VARIABLES' => [
206-
'ADMIN_EMAIL' => 'admin@example.com',
207-
'CRON_CONSUMERS_RUNNER' => '{"cron_run":"true", "max_messages":100, "consumers":["test2"]}',
208-
],
209-
],
210-
'expectedConfig' => [
211-
'cron_consumers_runner' => [
212-
'cron_run' => false,
213-
'max_messages' => 100,
214-
'consumers' => ['test2'],
215-
],
216-
'directories' => [
217-
'document_root_is_pub' => true,
218-
],
219-
],
220-
],
221-
'disabled static content symlinks 3 jobs' => [
222-
'variables' => [
223-
'MAGENTO_CLOUD_VARIABLES' => [
224-
'ADMIN_EMAIL' => 'admin@example.com',
225-
'STATIC_CONTENT_SYMLINK' => 'disabled',
226-
'STATIC_CONTENT_THREADS' => 3,
227-
],
228-
],
229-
'expectedConfig' => [
230-
'cron_consumers_runner' => [
231-
'cron_run' => false,
232-
'max_messages' => 10000,
233-
'consumers' => [],
234-
],
235-
'directories' => [
236-
'document_root_is_pub' => true,
237-
],
238-
],
239-
],
240-
];
241-
}
106+
abstract protected function defaultDataProvider(): array;
242107

243108
/**
244109
* @param CliTester $I

src/Test/Functional/Acceptance/AdminCredential83Cest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* This test runs on the latest version of PHP
1212
* @group php83
1313
*/
14-
class AdminCredentialCest extends AdminCredentialCest
14+
class AdminCredential83Cest extends AdminCredentialCest
1515
{
1616
/**
1717
* @var string

0 commit comments

Comments
 (0)