diff --git a/tests/Controller/GraphiQLControllerTest.php b/tests/Controller/GraphiQLControllerTest.php index c51d656..3d2c2d4 100644 --- a/tests/Controller/GraphiQLControllerTest.php +++ b/tests/Controller/GraphiQLControllerTest.php @@ -29,7 +29,7 @@ public function testDefaultSchema(): void $this->assertInstanceOf(Response::class, $response); $this->assertSame(200, $response->getStatusCode(), $response->getContent()); - $this->stringContains('Loading...', $response->getContent()); + $this->assertStringContainsString('Loading...', $response->getContent()); } public function testDefaultSchemaViaMultipleRoute(): void @@ -41,6 +41,6 @@ public function testDefaultSchemaViaMultipleRoute(): void $this->assertInstanceOf(Response::class, $response); $this->assertSame(200, $response->getStatusCode()); - $this->stringContains('Loading...', $response->getContent()); + $this->assertStringContainsString('Loading...', $response->getContent()); } } diff --git a/tests/Integration/OverblogGraphQLBundle/Controller/GraphiQLControllerTest.php b/tests/Integration/OverblogGraphQLBundle/Controller/GraphiQLControllerTest.php index a7ff443..f59f810 100644 --- a/tests/Integration/OverblogGraphQLBundle/Controller/GraphiQLControllerTest.php +++ b/tests/Integration/OverblogGraphQLBundle/Controller/GraphiQLControllerTest.php @@ -18,7 +18,7 @@ public function testDefaultSchema(): void $this->assertInstanceOf(Response::class, $response); $this->assertSame(200, $response->getStatusCode()); - $this->stringContains('Loading...', $response->getContent()); - $this->stringContains('var endpoint = "\/"', $response->getContent()); + $this->assertStringContainsString('Loading...', $response->getContent()); + $this->assertStringContainsString('var endpoint = "\/"', $response->getContent()); } }