diff --git a/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php b/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php index 74e30ae..95cde84 100644 --- a/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php +++ b/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php @@ -49,7 +49,7 @@ public function testPrefixRoundTrip($expected, $prefix_info) { $connection = new Connection($mock_pdo, []); // setPrefix() is protected, so we make it accessible with reflection. - $reflection = new \ReflectionClass('Drupal\Tests\Core\Database\Stub\Connection'); + $reflection = new \ReflectionClass(Connection::class); $set_prefix = $reflection->getMethod('setPrefix'); $set_prefix->setAccessible(TRUE); @@ -216,7 +216,7 @@ public function testDestroy() { $mock_pdo = $this->getMock('Drupal\Tests\Core\Database\Stub\StubPDO'); // Mocking Connection gives us access to the $schema attribute. $connection = $this->getMock( - 'Drupal\Tests\Core\Database\Stub\Connection', + Connection::class, NULL, [$mock_pdo, ['namespace' => 'Drupal\\Tests\\Core\\Database\\Stub\\Driver']] ); @@ -291,7 +291,7 @@ public function testFilterComments($expected, $comment) { $connection = new Connection($mock_pdo, []); // filterComment() is protected, so we make it accessible with reflection. - $reflection = new \ReflectionClass('Drupal\Tests\Core\Database\Stub\Connection'); + $reflection = new \ReflectionClass(Connection::class); $filter_comment = $reflection->getMethod('filterComment'); $filter_comment->setAccessible(TRUE);