diff --git a/core/lib/Drupal/Core/Command/DbDumpCommand.php b/core/lib/Drupal/Core/Command/DbDumpCommand.php index 95e9906..19604c1 100644 --- a/core/lib/Drupal/Core/Command/DbDumpCommand.php +++ b/core/lib/Drupal/Core/Command/DbDumpCommand.php @@ -375,8 +375,12 @@ protected function getFieldOrder(Connection $connection, $table) { * The template for the generated PHP script. */ protected function getTemplate() { + // The template contains an instruction for the file to be ignored by PHPCS. + // This is because the files can be huge and coding standards are + // irrelevant. $script = <<<'ENDOFSCRIPT' assertContains("'name' => 'test", $output, 'Insert name field found'); $this->assertContains("'path' => 'test", $output, 'Insert path field found'); $this->assertContains("'pattern_outline' => 'test", $output, 'Insert pattern_outline field found'); + $this->assertContains("// @codingStandardsIgnoreFile", $output); } /**