You are here

public function OptionSetConfigSchemaTest::testOptionSetConfigSchema in RoyalSlider Integration 8

Tests the OptionSet config schema for royalslider.

File

src/Tests/OptionSetConfigSchemaTest.php, line 49
Contains \Drupal\royalslider\Tests\OptionSetConfigSchemaTest.

Class

OptionSetConfigSchemaTest
Tests the royalslider optionset config schema.

Namespace

Drupal\royalslider\Tests

Code

public function testOptionSetConfigSchema() {
  $id = strtolower($this
    ->randomMachineName());
  $optionset = RoyalSliderOptionSetEntity::create(array(
    'id' => $id,
  ));
  $optionset
    ->save();
  $config = $this
    ->config("royalslider.royalslider_optionset.{$id}");
  $this
    ->assertEqual($config
    ->get('id'), $id);
  $this
    ->assertConfigSchema($this->typedConfig, $config
    ->getName(), $config
    ->get());
}