You are here

public function ConfigSyncMergerTest::testMergeConfigItemStates in Configuration Synchronizer 8

@covers ::mergeConfigItemStates @dataProvider statesProvider

File

tests/src/Unit/ConfigSyncMergerTest.php, line 123

Class

ConfigSyncMergerTest
@coversDefaultClass \Drupal\config_sync\ConfigSyncMerger @group config_sync

Namespace

Drupal\Tests\config_sync\Unit

Code

public function testMergeConfigItemStates($previous, $current, $active, $expected) {
  $config_sync_merger = new ConfigSyncMerger();
  $result = $config_sync_merger
    ->mergeConfigItemStates($previous, $current, $active);
  $this
    ->assertEquals($result, $expected);
}