public function FileCopyTest::testDeprecationNoticeReuse in Drupal 8
Tests that the reuse configuration key will trigger a deprecation notice.
@dataProvider providerDeprecationNoticeReuse
@expectedDeprecation Using the key 'reuse' is deprecated, use 'file_exists' => 'use existing' instead. See https://www.drupal.org/node/2981389.
Parameters
array $configuration: The plugin configuration.
$expected: The expected value of the plugin configuration.
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ FileCopyTest.php, line 58
Class
- FileCopyTest
- Tests the file copy process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testDeprecationNoticeReuse($configuration, $expected) {
$this
->assertPlugin($configuration, $expected);
}