You are here

public function ParagraphsTypeHasEnabledBehaviorPluginTest::testValidPluginIds in Paragraphs 8

Tests the behavior settings API.

File

tests/src/Kernel/ParagraphsTypeHasEnabledBehaviorPluginTest.php, line 63

Class

ParagraphsTypeHasEnabledBehaviorPluginTest
Tests the ParagraphsType entity hasEnabledBehaviorPlugin functionality.

Namespace

Drupal\Tests\paragraphs\Kernel

Code

public function testValidPluginIds() {
  $this
    ->assertTrue($this->paragraphsType
    ->hasEnabledBehaviorPlugin('test_text_color'));
  $this
    ->assertFalse($this->paragraphsType
    ->hasEnabledBehaviorPlugin('test_dummy_behavior'));
}