X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fmodules%2Fcontrib%2Fparagraphs%2Ftests%2Fsrc%2FKernel%2FParagraphsTypeHasEnabledBehaviorPluginTest.php;fp=web%2Fmodules%2Fcontrib%2Fparagraphs%2Ftests%2Fsrc%2FKernel%2FParagraphsTypeHasEnabledBehaviorPluginTest.php;h=0000000000000000000000000000000000000000;hb=059867c3f96750652c80f39e44c442a58c2549ee;hp=05de58617fb831ea2291b813a7675a91d6b7df77;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2;p=yaffs-website diff --git a/web/modules/contrib/paragraphs/tests/src/Kernel/ParagraphsTypeHasEnabledBehaviorPluginTest.php b/web/modules/contrib/paragraphs/tests/src/Kernel/ParagraphsTypeHasEnabledBehaviorPluginTest.php deleted file mode 100644 index 05de58617..000000000 --- a/web/modules/contrib/paragraphs/tests/src/Kernel/ParagraphsTypeHasEnabledBehaviorPluginTest.php +++ /dev/null @@ -1,75 +0,0 @@ -installEntitySchema('user'); - $this->installEntitySchema('paragraph'); - \Drupal::moduleHandler()->loadInclude('paragraphs', 'install'); - - // Create a paragraph with an enabled and disabled plugin. - $this->paragraphsType = ParagraphsType::create([ - 'label' => 'test_text', - 'id' => 'test_text', - 'behavior_plugins' => [ - 'test_text_color' => [ - 'enabled' => TRUE, - ], - 'test_dummy_behavior' => [ - 'enabled' => FALSE, - ], - ], - ]); - $this->paragraphsType->save(); - } - - /** - * Tests the behavior settings API. - */ - public function testValidPluginIds() { - $this->assertTrue($this->paragraphsType->hasEnabledBehaviorPlugin('test_text_color')); - $this->assertFalse($this->paragraphsType->hasEnabledBehaviorPlugin('test_dummy_behavior')); - } - - /** - * Test that invalid plugin id's return false. - */ - public function testInvalidPluginId() { - $this->assertFalse($this->paragraphsType->hasEnabledBehaviorPlugin('i_do_not_exist')); - } - -}