ConfigInstallerNoDependenciesProfileTest.php in Configuration installer 8
File
tests/src/Functional/ConfigInstallerNoDependenciesProfileTest.php
View source
<?php
namespace Drupal\Tests\config_installer\Functional;
use Drupal\Component\Serialization\Yaml;
use Drupal\Core\Archiver\ArchiveTar;
use Drupal\Core\Config\FileStorage;
class ConfigInstallerNoDependenciesProfileTest extends ConfigInstallerTestBase {
protected function prepareEnvironment() {
parent::prepareEnvironment();
$this->info = [
'type' => 'profile',
'core' => \Drupal::CORE_COMPATIBILITY,
'name' => 'Profile with no dependencies',
];
$path = $this->siteDirectory . '/profiles/no_dependencies_profile';
mkdir($path, 0777, TRUE);
file_put_contents("{$path}/no_dependencies_profile.info.yml", Yaml::encode($this->info));
}
protected function setUpSyncForm() {
$this
->drupalPostForm(NULL, [
'files[import_tarball]' => $this
->versionTarball('no_dependencies_profile.tar.gz'),
], 'Save and continue');
}
}