summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-08-28 12:28:50 +0200
committerLouis <louis@chmn.me>2024-08-28 14:54:14 +0200
commit140b36fcea956b149b25d1fbd3fc961a20b819eb (patch)
treea8d8044afda206d4422ad58b83f9cba0ba1fad9e /tests
parente5a8f996bde57c2245432bee22f966b522469f4d (diff)
downloadnextcloud-server-140b36fcea956b149b25d1fbd3fc961a20b819eb.tar.gz
nextcloud-server-140b36fcea956b149b25d1fbd3fc961a20b819eb.zip
fix: Backport to 30
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Repair/CleanTagsTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Repair/CleanTagsTest.php b/tests/lib/Repair/CleanTagsTest.php
index 80c0b2c9770..11430cc1215 100644
--- a/tests/lib/Repair/CleanTagsTest.php
+++ b/tests/lib/Repair/CleanTagsTest.php
@@ -142,7 +142,7 @@ class CleanTagsTest extends \Test\TestCase {
])
->execute();
- return (int) $this->getLastInsertID('vcategory', 'id');
+ return $qb->getLastInsertId();
}
/**
@@ -191,7 +191,7 @@ class CleanTagsTest extends \Test\TestCase {
])
->execute();
- $this->createdFile = (int) $this->getLastInsertID('filecache', 'fileid');
+ $this->createdFile = $qb->getLastInsertId();
return $this->createdFile;
}
}