Skip to content

Commit 1ca8642

Browse files
committed
fixup! feat: allow to output null links for haljson
1 parent 5b4e937 commit 1ca8642

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/Functional/NotSkipNullToOneRelationTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)