public function ConfigDiffTransformerTest::testReverseTransform in Update helper 8
Same name and namespace in other branches
- 2.x tests/src/Unit/ConfigDiffTransformerTest.php \Drupal\Tests\update_helper\Unit\ConfigDiffTransformerTest::testReverseTransform()
Test transforming of configuration to array of strings.
@dataProvider transformDataProvider
Parameters
array $expected: Expected result of "reverseTransform" execution.
array $transformedConfig: Transformed configuration array that should be reversibly transformed.
File
- tests/
src/ Unit/ ConfigDiffTransformerTest.php, line 42
Class
- ConfigDiffTransformerTest
- Automated tests for the 'update_helper.config_diff_transformer' service.
Namespace
Drupal\Tests\update_helper\UnitCode
public function testReverseTransform(array $expected, array $transformedConfig) {
$transformer = new ConfigDiffTransformer();
$result = $transformer
->reverseTransform($transformedConfig);
$this
->assertEquals($expected, $result);
}