You are here

public function RulesUiEmbedTest::testUiManager in Rules 8.3

@covers \Drupal\rules\Ui\RulesUiManager

File

tests/src/Kernel/RulesUiEmbedTest.php, line 50

Class

RulesUiEmbedTest
Tests embedding the Rules UI.

Namespace

Drupal\Tests\rules\Kernel

Code

public function testUiManager() {
  $definition = $this->rulesUiManager
    ->getDefinitions();
  $this
    ->assertTrue(isset($definition['rules_test_ui_embed.settings_conditions']));
  $this
    ->assertInstanceOf(RulesUiDefinition::class, $definition['rules_test_ui_embed.settings_conditions']);
  $this
    ->assertTrue(!empty($definition['rules_test_ui_embed.settings_conditions']->label));
  $this
    ->assertEquals(RulesUiConfigHandler::class, $definition['rules_test_ui_embed.settings_conditions']
    ->getClass());
}