Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / src / Functional / Database / TemporaryQueryTest.php
index 52265857904accc14c5dd289a940598ee8cc3470..e7d08502f3571c1460d8c7bb250a3078db5a1fb0 100644 (file)
@@ -2,6 +2,8 @@
 
 namespace Drupal\Tests\system\Functional\Database;
 
+use Drupal\Core\Database\Database;
+
 /**
  * Tests the temporary query functionality.
  *
@@ -29,7 +31,7 @@ class TemporaryQueryTest extends DatabaseTestBase {
     $data = json_decode($this->getSession()->getPage()->getContent());
     if ($data) {
       $this->assertEqual($this->countTableRows('test'), $data->row_count, 'The temporary table contains the correct amount of rows.');
-      $this->assertFalse(db_table_exists($data->table_name), 'The temporary table is, indeed, temporary.');
+      $this->assertFalse(Database::getConnection()->schema()->tableExists($data->table_name), 'The temporary table is, indeed, temporary.');
     }
     else {
       $this->fail('The creation of the temporary table failed.');