diff options
Diffstat (limited to 'apps/files_trashbin/tests/command/cleanuptest.php')
-rw-r--r-- | apps/files_trashbin/tests/command/cleanuptest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_trashbin/tests/command/cleanuptest.php b/apps/files_trashbin/tests/command/cleanuptest.php index 6e2f78093e0..ecbaab98bf2 100644 --- a/apps/files_trashbin/tests/command/cleanuptest.php +++ b/apps/files_trashbin/tests/command/cleanuptest.php @@ -64,7 +64,7 @@ class CleanUpTest extends TestCase { * populate files_trash table with 10 dummy values */ public function initTable() { - $query = $this->dbConnection->createQueryBuilder(); + $query = $this->dbConnection->getQueryBuilder(); $query->delete($this->trashTable)->execute(); for ($i = 0; $i < 10; $i++) { $query->insert($this->trashTable) @@ -75,7 +75,7 @@ class CleanUpTest extends TestCase { '`user`' => $query->expr()->literal('user'.$i%2) ))->execute(); } - $getAllQuery = $this->dbConnection->createQueryBuilder(); + $getAllQuery = $this->dbConnection->getQueryBuilder(); $result = $getAllQuery->select('`id`')->from($this->trashTable)->execute()->fetchAll(); $this->assertSame(10, count($result)); } @@ -106,7 +106,7 @@ class CleanUpTest extends TestCase { if ($nodeExists) { // if the delete operation was execute only files from user1 // should be left. - $query = $this->dbConnection->createQueryBuilder(); + $query = $this->dbConnection->getQueryBuilder(); $result = $query->select('`user`') ->from($this->trashTable) ->execute()->fetchAll(); @@ -117,7 +117,7 @@ class CleanUpTest extends TestCase { } else { // if no delete operation was execute we should still have all 10 // database entries - $getAllQuery = $this->dbConnection->createQueryBuilder(); + $getAllQuery = $this->dbConnection->getQueryBuilder(); $result = $getAllQuery->select('`id`')->from($this->trashTable)->execute()->fetchAll(); $this->assertSame(10, count($result)); } |