function ConfigConfiguratorTest::cloneRecipe
3 calls to ConfigConfiguratorTest::cloneRecipe()
- ConfigConfiguratorTest::testExistingConfigIsIgnoredInLenientMode in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ ConfigConfiguratorTest.php - @testWith [false] [[]]
- ConfigConfiguratorTest::testFullStrictness in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ ConfigConfiguratorTest.php - ConfigConfiguratorTest::testSelectiveStrictness in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ ConfigConfiguratorTest.php
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ ConfigConfiguratorTest.php, line 153
Class
- ConfigConfiguratorTest
- @covers \Drupal\Core\Recipe\ConfigConfigurator @group Recipe
Namespace
Drupal\KernelTests\Core\RecipeCode
private function cloneRecipe(string $original_dir) : string {
// Clone the recipe into the virtual file system.
$name = uniqid();
$clone_dir = $this->vfsRoot
->url() . '/' . $name;
mkdir($clone_dir);
$clone_dir = $this->vfsRoot
->getChild($name);
vfsStream::copyFromFileSystem($original_dir, $clone_dir);
return $clone_dir->url();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.