ColorConfigSchemaTest.php in Zircon Profile 8.0
File
core/modules/color/src/Tests/ColorConfigSchemaTest.php
View source
<?php
namespace Drupal\color\Tests;
use Drupal\simpletest\WebTestBase;
class ColorConfigSchemaTest extends WebTestBase {
public static $modules = array(
'color',
);
protected $adminUser;
protected function setUp() {
parent::setUp();
\Drupal::service('theme_handler')
->install(array(
'bartik',
));
$this->adminUser = $this
->drupalCreateUser(array(
'administer themes',
));
$this
->drupalLogin($this->adminUser);
}
function testValidColorConfigSchema() {
$settings_path = 'admin/appearance/settings/bartik';
$edit['scheme'] = '';
$edit['palette[bg]'] = '#123456';
$this
->drupalPostForm($settings_path, $edit, t('Save configuration'));
}
}