We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d1f287 commit b4b37f8Copy full SHA for b4b37f8
tests/Feature/EntityManagerFactoryTest.php
@@ -47,6 +47,7 @@
47
48
use function array_key_exists;
49
use function count;
50
+use function method_exists;
51
use function rmdir;
52
53
use const PHP_VERSION_ID;
@@ -975,9 +976,12 @@ protected function mockORMConfiguration(): void
975
976
->andReturn(false);
977
}
978
- $this->configuration->shouldReceive('isNativeLazyObjectsEnabled')
979
- ->atLeast()->once()
980
- ->andReturn(true);
+ if (method_exists(Configuration::class, 'isNativeLazyObjectsEnabled')) {
+ // ORM 3.4+
981
+ $this->configuration->shouldReceive('isNativeLazyObjectsEnabled')
982
+ ->atLeast()->once()
983
+ ->andReturn(true);
984
+ }
985
986
$this->configuration->shouldReceive('setProxyDir')
987
->atLeast()->once()
0 commit comments