You are here

public function ConfigDiffTransformerTest::testTransform in Update helper 8

Same name and namespace in other branches
  1. 2.x tests/src/Unit/ConfigDiffTransformerTest.php \Drupal\Tests\update_helper\Unit\ConfigDiffTransformerTest::testTransform()

Test transforming of configuration to array of strings.

@dataProvider transformDataProvider

Parameters

array $config: Configuration array that should be transformed.

array $expected: Expected result of "transform" execution.

File

tests/src/Unit/ConfigDiffTransformerTest.php, line 25

Class

ConfigDiffTransformerTest
Automated tests for the 'update_helper.config_diff_transformer' service.

Namespace

Drupal\Tests\update_helper\Unit

Code

public function testTransform(array $config, array $expected) {
  $transformer = new ConfigDiffTransformer();
  $result = $transformer
    ->transform($config);
  $this
    ->assertEquals($expected, $result);
}