summaryrefslogtreecommitdiffstats
path: root/apps/settings/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-11-10 09:34:57 +0100
committerJoas Schilling <coding@schilljs.com>2020-11-10 15:36:27 +0100
commitd5df033ede1f2b19b87c365b1f808130023edf17 (patch)
treed00503789c2e1188d59726e221dd9445e858f784 /apps/settings/tests
parent5b5aebbf66e7559aac73eb82b236b052b6a1ae3e (diff)
downloadnextcloud-server-d5df033ede1f2b19b87c365b1f808130023edf17.tar.gz
nextcloud-server-d5df033ede1f2b19b87c365b1f808130023edf17.zip
Create primary keys on all tables and add a command to create the afterwards
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings/tests')
-rw-r--r--apps/settings/tests/Controller/CheckSetupControllerTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/settings/tests/Controller/CheckSetupControllerTest.php b/apps/settings/tests/Controller/CheckSetupControllerTest.php
index dbc3fc7d0db..43ec984041c 100644
--- a/apps/settings/tests/Controller/CheckSetupControllerTest.php
+++ b/apps/settings/tests/Controller/CheckSetupControllerTest.php
@@ -165,6 +165,7 @@ class CheckSetupControllerTest extends TestCase {
'isOpcacheProperlySetup',
'hasFreeTypeSupport',
'hasMissingIndexes',
+ 'hasMissingPrimaryKeys',
'isSqliteUsed',
'isPHPMailerUsed',
'hasOpcacheLoaded',
@@ -449,6 +450,9 @@ class CheckSetupControllerTest extends TestCase {
->method('hasMissingIndexes')
->willReturn([]);
$this->checkSetupController
+ ->method('hasMissingPrimaryKeys')
+ ->willReturn([]);
+ $this->checkSetupController
->method('isSqliteUsed')
->willReturn(false);
$this->checkSetupController
@@ -587,6 +591,7 @@ class CheckSetupControllerTest extends TestCase {
'isSqliteUsed' => false,
'databaseConversionDocumentation' => 'http://docs.example.org/server/go.php?to=admin-db-conversion',
'missingIndexes' => [],
+ 'missingPrimaryKeys' => [],
'missingColumns' => [],
'isMemoryLimitSufficient' => true,
'appDirsWithDifferentOwner' => [],