function FileCopyTest::testDeprecationNoticeRename
Tests that the rename configuration key will trigger a deprecation notice.
@dataProvider providerDeprecationNoticeRename
@expectedDeprecation Using the key 'rename' is deprecated, use 'file_exists' => 'rename' 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 32
Class
- FileCopyTest
- Tests the file copy process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testDeprecationNoticeRename($configuration, $expected) {
$this->assertPlugin($configuration, $expected);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.