From: Michael Date: Fri, 15 May 2020 20:58:40 +0000 (+0000) Subject: Fix code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=68d3dc1fcc8ba2bac7f2968d50a4a8dbd059693f;p=friendica.git Fix code --- diff --git a/tests/datasets/storage/database.fixture.php b/tests/datasets/storage/database.fixture.php index 158806b90e..22ef9be63c 100644 --- a/tests/datasets/storage/database.fixture.php +++ b/tests/datasets/storage/database.fixture.php @@ -48,7 +48,8 @@ return [ // 'backend-class' => 'invalid!', // 'backend-ref' => 'unimported', // 'data' => '', -// ], ], +// ], + ], 'storage' => [ [ 'id' => 1, diff --git a/tests/src/Database/DBStructureTest.php b/tests/src/Database/DBStructureTest.php index 2a254eb892..fc7fd13303 100644 --- a/tests/src/Database/DBStructureTest.php +++ b/tests/src/Database/DBStructureTest.php @@ -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)); } }