Skip to content
Snippets Groups Projects
Commit 15c84836 authored by omkar podey's avatar omkar podey Committed by Adam G-H
Browse files

Issue #3320824 by omkar.podey, phenaproxima, Wim Leers: Fix PHP Warning:...

Issue #3320824 by omkar.podey, phenaproxima, Wim Leers: Fix PHP Warning: serialize() in tests on PHP 8
parent 68d32b2e
No related branches found
No related tags found
No related merge requests found
......@@ -137,12 +137,6 @@ class ScaffoldFilePermissionsValidatorTest extends AutomaticUpdatesKernelTestBas
* The test cases.
*/
public function providerScaffoldFilesChanged(): array {
// The summary is always replaced by ::assertValidationResultsEqual(), so
// if there's more than one message in a result, just give it a mocked
// summary object to prevent an exception.
$summary = $this->prophesize('\Drupal\Core\StringTranslation\TranslatableMarkup')
->reveal();
return [
// If no scaffold files are changed, it doesn't matter if the site
// directory is writable.
......@@ -211,7 +205,7 @@ class ScaffoldFilePermissionsValidatorTest extends AutomaticUpdatesKernelTestBas
ValidationResult::createError([
t('sites/default'),
t('sites/default/deleted.txt'),
], $summary),
], t('I summarize thee!')),
],
],
'non-writable scaffold file removed from writable site directory' => [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment