X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2FTest%2FGenerator%2FPluginCKEditorButtonGeneratorTest.php;fp=vendor%2Fdrupal%2Fconsole%2FTest%2FGenerator%2FPluginCKEditorButtonGeneratorTest.php;h=ff6bf62cf52b31ee26c89917c29a7e02c658ff23;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/drupal/console/Test/Generator/PluginCKEditorButtonGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginCKEditorButtonGeneratorTest.php new file mode 100644 index 000000000..ff6bf62cf --- /dev/null +++ b/vendor/drupal/console/Test/Generator/PluginCKEditorButtonGeneratorTest.php @@ -0,0 +1,55 @@ +getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs()); + $this->getRenderHelper()->setTranslator($this->getTranslatorHelper()); + $generator->setHelperSet($this->getHelperSet()); + + $generator->generate( + $module, + $class_name, + $label, + $plugin_id, + $button_name, + $button_icon_path + ); + + $this->assertTrue( + file_exists($generator->getSite()->getPluginPath($module, 'CKEditorPlugin').'/'.$class_name.'.php'), + sprintf('%s does not exist', $class_name.'.php') + ); + } +}