public function ReversibleConfigDifferTest::testSame in Update helper 8
Same name and namespace in other branches
- 2.x 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\KernelCode
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);
}