@@ -30,24 +30,34 @@ public static function getResources(): array
3030
3131 public function testValidPostRequestWithIriWhenIdentifierIsUuid (): void
3232 {
33+ $ container = static ::getContainer ();
34+ if ('mongodb ' === $ container ->getParameter ('kernel.environment ' )) {
35+ $ this ->markTestSkipped ();
36+ }
37+
3338 $ this ->recreateSchema (self ::getResources ());
3439 $ bar = $ this ->loadFixtures ();
3540
3641 $ response = self ::createClient ()->request ('POST ' , '/pull-request-7135/foo/ ' , [
3742 'json ' => [
38- 'bar ' => 'pull-request-7135/bar/ ' . $ bar ->id
39- ]
43+ 'bar ' => 'pull-request-7135/bar/ ' . $ bar ->id
44+ ],
4045 ]);
4146
4247 self ::assertEquals (201 , $ response ->getStatusCode ());
4348 }
4449
4550 public function testInvalidPostRequestWithIriWhenIdentifierIsUuid (): void
4651 {
52+ $ container = static ::getContainer ();
53+ if ('mongodb ' === $ container ->getParameter ('kernel.environment ' )) {
54+ $ this ->markTestSkipped ();
55+ }
56+
4757 $ response = self ::createClient ()->request ('POST ' , '/pull-request-7135/foo/ ' , [
4858 'json ' => [
4959 'bar ' => 'pull-request-7135/bar/invalid-uuid '
50- ]
60+ ],
5161 ]);
5262
5363 self ::assertEquals (400 , $ response ->getStatusCode ());
@@ -56,10 +66,15 @@ public function testInvalidPostRequestWithIriWhenIdentifierIsUuid(): void
5666
5767 public function testInvalidGetRequestWhenIdentifierIsUuid (): void
5868 {
69+ $ container = static ::getContainer ();
70+ if ('mongodb ' === $ container ->getParameter ('kernel.environment ' )) {
71+ $ this ->markTestSkipped ();
72+ }
73+
5974 $ response = self ::createClient ()->request ('GET ' , '/pull-request-7135/bar/invalid-uuid ' );
6075
6176 self ::assertEquals (404 , $ response ->getStatusCode ());
62- self ::assertJsonContains (['detail ' => 'Invalid uri variables . ' ]);
77+ self ::assertJsonContains (['detail ' => 'Invalid identifier value or configuration . ' ]);
6378 }
6479
6580 protected function loadFixtures (): Bar
0 commit comments