Loading core/.phpstan-baseline.php +10 −0 Original line number Diff line number Diff line Loading @@ -1755,6 +1755,16 @@ 'count' => 1, 'path' => __DIR__ . '/modules/migrate/src/Plugin/migrate/destination/NullDestination.php', ]; $ignoreErrors[] = [ 'message' => '#^@dataProvider providerSource related method not found\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php', ]; $ignoreErrors[] = [ 'message' => '#^@dataProvider providerSource related method not found\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateSqlSourceTestBase.php', ]; $ignoreErrors[] = [ 'message' => '#^Call to an undefined static method static\\(Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateTestBase\\)\\:\\:migrateDumpAlter\\(\\)\\.$#', 'count' => 1, Loading core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php +23 −18 Original line number Diff line number Diff line Loading @@ -10,6 +10,29 @@ /** * Base class for tests of Migrate source plugins. * * Implementing classes must declare a providerSource() method for this class * to work, defined as follows: * * @code * abstract public static function providerSource(): array; * @endcode * * The returned array should be as follows: * * @code * Array of data sets to test, each of which is a numerically indexed array * with the following elements: * - An array of source data, which can be optionally processed and set up * by subclasses. * - An array of expected result rows. * - (optional) The number of result rows the plugin under test is expected * to return. If this is not a numeric value, the plugin will not be * counted. * - (optional) Array of configuration options for the plugin under test. * @endcode * * @see \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase::testSource */ abstract class MigrateSourceTestBase extends KernelTestBase { Loading @@ -32,24 +55,6 @@ abstract class MigrateSourceTestBase extends KernelTestBase { */ protected $plugin; /** * The data provider. * * @see \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase::testSource * * @return array * Array of data sets to test, each of which is a numerically indexed array * with the following elements: * - An array of source data, which can be optionally processed and set up * by subclasses. * - An array of expected result rows. * - (optional) The number of result rows the plugin under test is expected * to return. If this is not a numeric value, the plugin will not be * counted. * - (optional) Array of configuration options for the plugin under test. */ abstract public function providerSource(); /** * {@inheritdoc} */ Loading Loading
core/.phpstan-baseline.php +10 −0 Original line number Diff line number Diff line Loading @@ -1755,6 +1755,16 @@ 'count' => 1, 'path' => __DIR__ . '/modules/migrate/src/Plugin/migrate/destination/NullDestination.php', ]; $ignoreErrors[] = [ 'message' => '#^@dataProvider providerSource related method not found\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php', ]; $ignoreErrors[] = [ 'message' => '#^@dataProvider providerSource related method not found\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateSqlSourceTestBase.php', ]; $ignoreErrors[] = [ 'message' => '#^Call to an undefined static method static\\(Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateTestBase\\)\\:\\:migrateDumpAlter\\(\\)\\.$#', 'count' => 1, Loading
core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php +23 −18 Original line number Diff line number Diff line Loading @@ -10,6 +10,29 @@ /** * Base class for tests of Migrate source plugins. * * Implementing classes must declare a providerSource() method for this class * to work, defined as follows: * * @code * abstract public static function providerSource(): array; * @endcode * * The returned array should be as follows: * * @code * Array of data sets to test, each of which is a numerically indexed array * with the following elements: * - An array of source data, which can be optionally processed and set up * by subclasses. * - An array of expected result rows. * - (optional) The number of result rows the plugin under test is expected * to return. If this is not a numeric value, the plugin will not be * counted. * - (optional) Array of configuration options for the plugin under test. * @endcode * * @see \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase::testSource */ abstract class MigrateSourceTestBase extends KernelTestBase { Loading @@ -32,24 +55,6 @@ abstract class MigrateSourceTestBase extends KernelTestBase { */ protected $plugin; /** * The data provider. * * @see \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase::testSource * * @return array * Array of data sets to test, each of which is a numerically indexed array * with the following elements: * - An array of source data, which can be optionally processed and set up * by subclasses. * - An array of expected result rows. * - (optional) The number of result rows the plugin under test is expected * to return. If this is not a numeric value, the plugin will not be * counted. * - (optional) Array of configuration options for the plugin under test. */ abstract public function providerSource(); /** * {@inheritdoc} */ Loading