]> git.mxchange.org Git - friendica.git/commitdiff
Fix code
authorMichael <heluecht@pirati.ca>
Fri, 15 May 2020 20:58:40 +0000 (20:58 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 15 May 2020 20:58:40 +0000 (20:58 +0000)
tests/datasets/storage/database.fixture.php
tests/src/Database/DBStructureTest.php

index 158806b90e4ad225bf1258af9a151386927d5783..22ef9be63caa06354c0dde182dce09cc714624b3 100644 (file)
@@ -48,7 +48,8 @@ return [
 //                     'backend-class' => 'invalid!',
 //                     'backend-ref'   => 'unimported',
 //                     'data'          => '',
-//             ],      ],
+//             ],
+       ],
        'storage' => [
                [
                        'id'   => 1,
index 2a254eb892b3b84a93ec9da4235106c07f66e806..fc7fd133035d7f5d74e6ba5e1c0f6cbad08ba6d9 100644 (file)
@@ -75,10 +75,10 @@ class DBStructureTest extends DatabaseTest
         * @small
         */
        public function testChangePrimaryKey() {
-               $oldID = 'client_id';
+               $oldID = 'id';
                $newID = 'pw';
 
-               $this->assertTrue(DBStructure::rename('clients', [ $newID ], DBStructure::RENAME_PRIMARY_KEY));
-               $this->assertTrue(DBStructure::rename('clients', [ $oldID ], DBStructure::RENAME_PRIMARY_KEY));
+               $this->assertTrue(DBStructure::rename('poll', [ $newID ], DBStructure::RENAME_PRIMARY_KEY));
+               $this->assertTrue(DBStructure::rename('poll', [ $oldID ], DBStructure::RENAME_PRIMARY_KEY));
        }
 }