Source of file TestHtmlEditorFieldPixlrExtension.php
Size: 0,638 Bytes - Last Modified: 2021-12-23T10:26:31+00:00
/var/www/docs.ssmods.com/process/src/tests/TestHtmlEditorFieldPixlrExtension.php
1234567891011121314151617181920 | <?php /** * Tests to make sure the html editor gets the pixlr 'create new' button inserted * * @author Marcus Nyeholt <marcus@silverstripe.com.au> */ class TestHtmlEditorFieldPixlrExtension extends FunctionalTest { public function testPixlrEditorExtension() { $controller = new ContentController(); $toolbar = new HtmlEditorField_Toolbar($controller, 'DummyToolbar'); $imageForm = $toolbar->ImageForm(); // we expect the image form to now have the pixlr component inside $fields = $imageForm->Fields(); $this->assertNotNull($fields->dataFieldByName('NewPixlrImage')); } } |