X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FDatabase%2FTemporaryQueryTest.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FDatabase%2FTemporaryQueryTest.php;h=e7d08502f3571c1460d8c7bb250a3078db5a1fb0;hp=52265857904accc14c5dd289a940598ee8cc3470;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/system/tests/src/Functional/Database/TemporaryQueryTest.php b/web/core/modules/system/tests/src/Functional/Database/TemporaryQueryTest.php index 522658579..e7d08502f 100644 --- a/web/core/modules/system/tests/src/Functional/Database/TemporaryQueryTest.php +++ b/web/core/modules/system/tests/src/Functional/Database/TemporaryQueryTest.php @@ -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.');