You are here

public function ConfigImporterServiceTest::testExportConfigs in Config Importer and Tools 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/ConfigImporterServiceTest.php \Drupal\Tests\config_import\Unit\ConfigImporterServiceTest::testExportConfigs()

Check that configuration will be exported.

File

tests/src/Unit/ConfigImporterServiceTest.php, line 127

Class

ConfigImporterServiceTest
Testing configuration importer service.

Namespace

Drupal\Tests\config_import\Unit

Code

public function testExportConfigs() {
  $this->configImporter
    ->setDirectory($this->siteDirectory);
  $this->configImporter
    ->exportConfigs([
    static::TEST_CONFIG,
  ]);
  static::assertFileExists(sprintf("{$this->siteDirectory}/%s.yml", static::TEST_CONFIG));
}