function RulesUiEmbedTest::testUiManager
@covers \Drupal\rules\Ui\RulesUiManager
File
-
tests/
src/ Kernel/ RulesUiEmbedTest.php, line 48
Class
- RulesUiEmbedTest
- Tests embedding the Rules UI.
Namespace
Drupal\Tests\rules\KernelCode
public function testUiManager() {
$definition = $this->rulesUiManager
->getDefinitions();
$this->assertArrayHasKey('rules_test_ui_embed.settings_conditions', $definition);
$this->assertInstanceOf(RulesUiDefinition::class, $definition['rules_test_ui_embed.settings_conditions']);
$this->assertNotEmpty($definition['rules_test_ui_embed.settings_conditions']->label);
$this->assertEquals(RulesUiConfigHandler::class, $definition['rules_test_ui_embed.settings_conditions']->getClass());
}