Apply fixes from StyleCI (#12124)

This commit is contained in:
Jellyfrog
2020-09-21 15:59:34 +02:00
committed by GitHub
parent 0d56bbd946
commit 29f45ca352
816 changed files with 5038 additions and 5038 deletions

View File

@@ -46,7 +46,7 @@ class DBSetupTest extends DBTestCase
'--database' => $this->connection,
]);
$this->assertSame(0, $result, "Errors loading DB Schema: " . Artisan::output());
$this->assertSame(0, $result, 'Errors loading DB Schema: ' . Artisan::output());
}
public function testSchemaFiles()
@@ -63,13 +63,13 @@ class DBSetupTest extends DBTestCase
$migrated = DB::connection($this->connection)->table('migrations')->pluck('migration')->toArray();
sort($files);
sort($migrated);
$this->assertEquals($files, $migrated, "List of run migrations did not match existing migration files.");
$this->assertEquals($files, $migrated, 'List of run migrations did not match existing migration files.');
// check legacy schema version is 1000
$schema = DB::connection($this->connection)->table('dbSchema')
->orderBy('version', 'DESC')
->value('version');
$this->assertEquals(1000, $schema, "Seed not run, after seed legacy dbSchema should be 1000");
$this->assertEquals(1000, $schema, 'Seed not run, after seed legacy dbSchema should be 1000');
}
public function testCheckDBCollation()
@@ -107,7 +107,7 @@ class DBSetupTest extends DBTestCase
{
$this->assertEquals(
'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION',
DB::connection($this->connection)->select(DB::raw("SELECT @@sql_mode AS mode"))[0]->mode
DB::connection($this->connection)->select(DB::raw('SELECT @@sql_mode AS mode'))[0]->mode
);
}