You are here

public function ReversibleConfigDifferTest::testSame in Update helper 2.x

Same name and namespace in other branches
  1. 8 tests/src/Kernel/ReversibleConfigDifferTest.php \Drupal\Tests\update_helper\Kernel\ReversibleConfigDifferTest::testSame()

@covers \Drupal\update_helper\ReversibleConfigDiffer::same

@dataProvider sameDataProvider

Parameters

array $configOne: First configuration.

array $configTwo: Second configuration.

bool $expected: Expected result of checking if configs are same.

File

tests/src/Kernel/ReversibleConfigDifferTest.php, line 35

Class

ReversibleConfigDifferTest
Automated tests for ReversibleConfigDiffer class.

Namespace

Drupal\Tests\update_helper\Kernel

Code

public function testSame(array $configOne, array $configTwo, $expected) {

  /** @var \Drupal\update_helper\ReversibleConfigDiffer $configDiffer */
  $configDiffer = \Drupal::service('update_helper.config_differ');
  $result = $configDiffer
    ->same($configOne, $configTwo);
  $this
    ->assertEquals($expected, $result);
}