ConfigSelectorProfileTest.php in Configuration selector 8.2
File
tests/src/Functional/ConfigSelectorProfileTest.php
View source
<?php
namespace Drupal\Tests\config_selector\Functional;
use Drupal\Tests\BrowserTestBase;
class ConfigSelectorProfileTest extends BrowserTestBase {
protected $profile = 'config_selector_profile_test';
protected $defaultTheme = 'stark';
public function testProfileInstall() {
$configs = \Drupal::entityTypeManager()
->getStorage('config_test')
->loadMultiple();
$this
->assertTrue($configs['feature_a_five']
->status());
$this
->assertFalse($configs['feature_a_two']
->status());
$this
->assertFalse($configs['feature_a_one']
->status());
$this
->assertFalse($configs['feature_a_three']
->status());
$this
->assertFalse($configs['feature_a_four']
->status());
$this
->assertTrue($configs['feature_b_two']
->status());
$this
->assertFalse($configs['feature_b_one']
->status());
$this
->assertTrue($configs['feature_c_one']
->status());
$this
->assertTrue($configs['feature_d_two']
->status());
$this
->assertFalse($configs['feature_d_one']
->status());
}
}