File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ public static function getResources(): array
4747 */
4848 public function testNullRelationsAreNotSkippedWhenConfigured (): void
4949 {
50+ if ($ this ->isMongoDB ()) {
51+ $ this ->markTestSkipped ('Not tested with mongodb. ' );
52+ }
5053 $ itemIri = str_replace (
5154 '{id} ' ,
5255 ToOneRelationPropertyMayBeNull::ENTITY_ID .'' ,
@@ -121,6 +124,9 @@ public function testNullRelationsAreNotSkippedWhenConfigured(): void
121124 */
122125 public function testNullRelationsAreSkippedByDefault (): void
123126 {
127+ if ($ this ->isMongoDB ()) {
128+ $ this ->markTestSkipped ('Not tested with mongodb. ' );
129+ }
124130 $ itemIri = str_replace (
125131 '{id} ' ,
126132 ToOneRelationPropertyMayBeNull::ENTITY_ID .'' ,
@@ -215,4 +221,9 @@ private function checkRoutesAreCorrectlySetUp(): void
215221 ]
216222 );
217223 }
224+
225+ private function isMongoDB (): bool
226+ {
227+ return 'mongodb ' === static ::getContainer ()->getParameter ('kernel.environment ' );
228+ }
218229}
You can’t perform that action at this time.
0 commit comments