mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12124)
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user