diff --git a/core/modules/filter/tests/src/Kernel/Plugin/migrate/process/FilterIdTest.php b/core/modules/filter/tests/src/Kernel/Plugin/migrate/process/FilterIdTest.php index e18b3a904dd7ac41d3dea49b1a59a486fff47826..eb5f7eacab463ca98ff6c01045a0d586e18d67b9 100644 --- a/core/modules/filter/tests/src/Kernel/Plugin/migrate/process/FilterIdTest.php +++ b/core/modules/filter/tests/src/Kernel/Plugin/migrate/process/FilterIdTest.php @@ -37,7 +37,7 @@ protected function setUp() { } /** - * Tests the filter_id plugin. + * Tests transformation of filter_id plugin. * * @param mixed $value * The input value to the plugin. @@ -47,11 +47,11 @@ protected function setUp() { * (optional) The invalid plugin ID which is expected to be logged by the * MigrateExecutable object. * - * @dataProvider testProvider + * @dataProvider provideFilters * * @covers ::transform */ - public function test($value, $expected_value, $invalid_id = NULL) { + public function testTransform($value, $expected_value, $invalid_id = NULL) { $configuration = [ 'bypass' => TRUE, 'map' => [ @@ -78,11 +78,14 @@ public function test($value, $expected_value, $invalid_id = NULL) { } /** - * The test data provider. + * Provides filter ids for testing transformations. * * @return array + * Formatted as $source_id, $tranformed_id, $invalid_id. + * When $invalid_id is provided the transformation should fail with the + * supplied id. */ - public function testProvider() { + public function provideFilters() { return [ // The filter ID is mapped, and the plugin exists. [