Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-08-30 17:18:18 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-09-02 14:06:48 +0300
commite69048bcc661c578f0fede795447b528e2030147 (patch)
treeadeca107f928b4c1950d0976c455f8fd11d5222b /tests
parent4fa36a88f1c8e0baf0790388df97c635e880444c (diff)
Move away from string-based ID column as that causes problems on update
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/Db/MailboxMapperTest.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/Db/MailboxMapperTest.php b/tests/Db/MailboxMapperTest.php
index 8310d671d..eac76bb53 100644
--- a/tests/Db/MailboxMapperTest.php
+++ b/tests/Db/MailboxMapperTest.php
@@ -28,9 +28,7 @@ use ChristophWurst\Nextcloud\Testing\TestCase;
use OCA\Mail\Account;
use OCA\Mail\Db\MailboxMapper;
use OCP\DB\QueryBuilder\IQueryBuilder;
-use OCP\Diagnostics\IQuery;
use OCP\IDBConnection;
-use PHPUnit\Framework\MockObject\MockObject;
class MailboxMapperTest extends TestCase {
@@ -72,7 +70,7 @@ class MailboxMapperTest extends TestCase {
$qb = $this->db->getQueryBuilder();
$insert = $qb->insert($this->mapper->getTableName())
->values([
- 'id' => $qb->createNamedParameter("folder$i"),
+ 'name' => $qb->createNamedParameter("folder$i"),
'account_id' => $qb->createNamedParameter($i <= 5 ? 13 : 14, IQueryBuilder::PARAM_INT),
'sync_token' => $qb->createNamedParameter('VTEsVjE0Mjg1OTkxNDk='),
'delimiter' => $qb->createNamedParameter('.'),