Skip to content

Commit 1e1277a

Browse files
committed
AC-10665: Integration Failures with PHP8.3
1 parent 1e709e2 commit 1e1277a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

dev/tests/integration/testsuite/Magento/Backend/Block/MenuTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ protected function prepareMenuConfig()
9797
$paths->setAccessible(true);
9898

9999
$paths->setValue(
100+
null,
100101
[
101102
ComponentRegistrar::MODULE => [],
102103
ComponentRegistrar::THEME => [],
@@ -157,7 +158,7 @@ protected function tearDown(): void
157158
$reflection = new \ReflectionClass(\Magento\Framework\Component\ComponentRegistrar::class);
158159
$paths = $reflection->getProperty('paths');
159160
$paths->setAccessible(true);
160-
$paths->setValue($this->backupRegistrar);
161+
$paths->setValue(null, $this->backupRegistrar);
161162
$paths->setAccessible(false);
162163
}
163164
}

dev/tests/integration/testsuite/Magento/Setup/Module/I18n/Dictionary/GeneratorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function setUp(): void
4747
$paths = $reflection->getProperty('paths');
4848
$paths->setAccessible(true);
4949
$this->backupRegistrar = $paths->getValue();
50-
$paths->setValue(['module' => [], 'theme' => []]);
50+
$paths->setValue(null, ['module' => [], 'theme' => []]);
5151
$paths->setAccessible(false);
5252

5353
$this->testDir = realpath(__DIR__ . '/_files');
@@ -84,13 +84,13 @@ protected function tearDown(): void
8484
}
8585
$property = new \ReflectionProperty(\Magento\Setup\Module\I18n\ServiceLocator::class, '_dictionaryGenerator');
8686
$property->setAccessible(true);
87-
$property->setValue(null);
87+
$property->setValue(null, null);
8888
$property->setAccessible(false);
8989

9090
$reflection = new \ReflectionClass(\Magento\Framework\Component\ComponentRegistrar::class);
9191
$paths = $reflection->getProperty('paths');
9292
$paths->setAccessible(true);
93-
$paths->setValue($this->backupRegistrar);
93+
$paths->setValue(null, $this->backupRegistrar);
9494
$paths->setAccessible(false);
9595
}
9696

dev/tests/integration/testsuite/Magento/Setup/Module/I18n/Pack/GeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function tearDown(): void
8080
$reflection = new \ReflectionClass(\Magento\Framework\Component\ComponentRegistrar::class);
8181
$paths = $reflection->getProperty('paths');
8282
$paths->setAccessible(true);
83-
$paths->setValue($this->backupRegistrar);
83+
$paths->setValue(null, $this->backupRegistrar);
8484
$paths->setAccessible(false);
8585
}
8686

0 commit comments

Comments
 (0)