public function ConfigSplitKernelTest::testSyncFolderIsConflicting in Configuration Split 8
Test that the form checks the sync folder.
@dataProvider syncFolderIsConflictingProvider
Parameters
string $split: The split folder.
string $sync: The sync folder.
bool $expected: The expected result.
File
- tests/
src/ Kernel/ ConfigSplitKernelTest.php, line 107
Class
- ConfigSplitKernelTest
- Integration test.
Namespace
Drupal\Tests\config_split\KernelCode
public function testSyncFolderIsConflicting($split, $sync, $expected) {
$settings = Settings::getAll();
$settings['config_sync_directory'] = $sync;
new Settings($settings);
// Access the protected static function to test it.
$reflection = new \ReflectionClass(ConfigSplitEntityForm::class);
$method = $reflection
->getMethod('isConflicting');
$method
->setAccessible(TRUE);
$this
->assertEquals($expected, $method
->invoke(NULL, $split));
}