public function ConfigImporterServiceTest::testSetDirectoryWrongType in Config Importer and Tools 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/ConfigImporterServiceTest.php \Drupal\Tests\config_import\Unit\ConfigImporterServiceTest::testSetDirectoryWrongType()
Check that we unable to set whatever we want.
Parameters
string $type: Type of configuration directory.
File
- tests/
src/ Unit/ ConfigImporterServiceTest.php, line 29
Class
- ConfigImporterServiceTest
- Testing configuration importer service.
Namespace
Drupal\Tests\config_import\UnitCode
public function testSetDirectoryWrongType($type = 'something') {
$this
->expectException(\Exception::class, "The configuration directory type '%s' does not exist", $type);
$this->configImporter
->setDirectory($type);
}