ConfigIgnoreSettingsTest.php in Config Ignore 8
File
src/Tests/ConfigIgnoreSettingsTest.php
View source
<?php
namespace Drupal\config_ignore\Tests;
use Drupal\simpletest\WebTestBase;
class ConfigIgnoreSettingsTest extends WebTestBase {
public static $modules = [
'config_ignore',
];
public function testSettingsForm() {
$this
->drupalLogin($this
->drupalCreateUser([
'import configuration',
]));
$edit = [
'ignored_config_entities' => 'config.test',
];
$this
->drupalPostForm('admin/config/development/configuration/ignore', $edit, t('Save configuration'));
$settings = $this
->config('config_ignore.settings')
->get('ignored_config_entities');
$this
->assertEqual($settings, [
'config.test',
]);
}
}