Skip to content

Commit e018d95

Browse files
committed
Show all errors in local and CI.
1 parent 43d07e2 commit e018d95

19 files changed

Lines changed: 34 additions & 17 deletions

File tree

.vortex/installer/tests/Fixtures/install/_baseline/tests/phpunit/Drupal/EnvironmentSettingsTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ public function testEnvironmentLocal(): void {
194194
$config['environment_indicator.settings']['toolbar_integration'] = [TRUE];
195195
$config['robots_txt.settings']['content'] = "User-agent: *\r\nDisallow:";
196196
$config['shield.settings']['shield_enable'] = FALSE;
197+
$config['system.logging']['error_level'] = 'all';
197198
$config['system.performance']['cache']['page']['max_age'] = 900;
198199
$config['seckit.settings']['seckit_xss']['csp']['checkbox'] = FALSE;
199200
$config['seckit.settings']['seckit_xss']['csp']['upgrade-req'] = FALSE;
@@ -213,6 +214,7 @@ public function testEnvironmentLocal(): void {
213214
$settings['config_sync_directory'] = '../config/default';
214215
$settings['hash_salt'] = hash('sha256', getenv('DATABASE_HOST') ?: 'localhost');
215216
$settings['maintenance_theme'] = 'claro';
217+
$settings['skip_permissions_hardening'] = TRUE;
216218
$settings['trusted_host_patterns'] = [
217219
'^localhost$',
218220
];
@@ -238,6 +240,7 @@ public function testEnvironmentLocalContainer(): void {
238240
$config['environment_indicator.settings']['toolbar_integration'] = [TRUE];
239241
$config['robots_txt.settings']['content'] = "User-agent: *\r\nDisallow:";
240242
$config['shield.settings']['shield_enable'] = FALSE;
243+
$config['system.logging']['error_level'] = 'all';
241244
$config['system.performance']['cache']['page']['max_age'] = 900;
242245
$config['seckit.settings']['seckit_xss']['csp']['checkbox'] = FALSE;
243246
$config['seckit.settings']['seckit_xss']['csp']['upgrade-req'] = FALSE;
@@ -257,6 +260,7 @@ public function testEnvironmentLocalContainer(): void {
257260
$settings['config_sync_directory'] = '../config/default';
258261
$settings['hash_salt'] = hash('sha256', getenv('DATABASE_HOST') ?: 'localhost');
259262
$settings['maintenance_theme'] = 'claro';
263+
$settings['skip_permissions_hardening'] = TRUE;
260264
$settings['trusted_host_patterns'] = [
261265
'^localhost$',
262266
'^example-site\.docker\.amazee\.io$',
@@ -284,6 +288,7 @@ public function testEnvironmentGha(): void {
284288
$config['environment_indicator.settings']['toolbar_integration'] = [TRUE];
285289
$config['robots_txt.settings']['content'] = "User-agent: *\r\nDisallow:";
286290
$config['shield.settings']['shield_enable'] = FALSE;
291+
$config['system.logging']['error_level'] = 'all';
287292
$config['system.performance']['cache']['page']['max_age'] = 900;
288293
$config['seckit.settings']['seckit_xss']['csp']['checkbox'] = FALSE;
289294
$config['seckit.settings']['seckit_xss']['csp']['upgrade-req'] = FALSE;

.vortex/installer/tests/Fixtures/install/_baseline/web/sites/default/includes/modules/settings.system.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
$config['system.performance']['js']['preprocess'] = TRUE;
1717
}
1818

19-
if ($settings['environment'] === ENVIRONMENT_CI) {
19+
if ($settings['environment'] === ENVIRONMENT_LOCAL || $settings['environment'] === ENVIRONMENT_CI) {
2020
// Never harden permissions on sites/default/files.
2121
$settings['skip_permissions_hardening'] = TRUE;
22+
// Show all error messages on the site.
23+
$config['system.logging']['error_level'] = 'all';
2224
}

.vortex/installer/tests/Fixtures/install/ciprovider_circleci/tests/phpunit/Drupal/EnvironmentSettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -266,9 +266,9 @@
1+
@@ -270,9 +270,9 @@
22
}
33

44
/**

.vortex/installer/tests/Fixtures/install/deploy_type_all_circleci/tests/phpunit/Drupal/EnvironmentSettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -266,9 +266,9 @@
1+
@@ -270,9 +270,9 @@
22
}
33

44
/**

.vortex/installer/tests/Fixtures/install/deploy_type_none_circleci/tests/phpunit/Drupal/EnvironmentSettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -266,9 +266,9 @@
1+
@@ -270,9 +270,9 @@
22
}
33

44
/**

.vortex/installer/tests/Fixtures/install/deps_updates_provider_ci_circleci/tests/phpunit/Drupal/EnvironmentSettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -266,9 +266,9 @@
1+
@@ -270,9 +270,9 @@
22
}
33

44
/**

.vortex/installer/tests/Fixtures/install/hosting_acquia/docroot/sites/default/includes/modules/settings.system.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
$config['system.performance']['js']['preprocess'] = TRUE;
1717
}
1818

19-
if ($settings['environment'] === ENVIRONMENT_CI) {
19+
if ($settings['environment'] === ENVIRONMENT_LOCAL || $settings['environment'] === ENVIRONMENT_CI) {
2020
// Never harden permissions on sites/default/files.
2121
$settings['skip_permissions_hardening'] = TRUE;
22+
// Show all error messages on the site.
23+
$config['system.logging']['error_level'] = 'all';
2224
}

.vortex/installer/tests/Fixtures/install/hosting_acquia/tests/phpunit/Drupal/EnvironmentSettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
];
5050
}
5151

52-
@@ -305,6 +349,173 @@
52+
@@ -310,6 +354,173 @@
5353
$settings['skip_permissions_hardening'] = TRUE;
5454
$settings['config_sync_directory'] = '../config/default';
5555
$settings['suspend_mail_send'] = TRUE;

.vortex/installer/tests/Fixtures/install/hosting_lagoon/tests/phpunit/Drupal/EnvironmentSettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
];
186186
}
187187

188-
@@ -307,6 +487,214 @@
188+
@@ -312,6 +492,214 @@
189189
$settings['suspend_mail_send'] = TRUE;
190190
$settings['trusted_host_patterns'] = [
191191
'^localhost$',

.vortex/installer/tests/Fixtures/install/provision_database_lagoon/tests/phpunit/Drupal/EnvironmentSettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
];
186186
}
187187

188-
@@ -307,6 +487,214 @@
188+
@@ -312,6 +492,214 @@
189189
$settings['suspend_mail_send'] = TRUE;
190190
$settings['trusted_host_patterns'] = [
191191
'^localhost$',

0 commit comments

Comments
 (0)