Perforce Chronicle 2012.2/486814
API Documentation
|
Test methods for the content editor view helper. More...
Public Member Functions | |
setup () | |
Test setup. | |
testExtraPluginOutput () | |
Verify non-nested options get properly output. | |
testInstantiation () | |
Test instantiation. |
Test methods for the content editor view helper.
Content_Test_EditorHelperTest::setup | ( | ) |
Test setup.
{ $this->view = new Zend_View; Zend_Dojo::enableView($this->view); parent::setup(); }
Content_Test_EditorHelperTest::testExtraPluginOutput | ( | ) |
Verify non-nested options get properly output.
{ $helper = new Content_View_Helper_Editor(); $helper->setView($this->view); $output = $helper->editor( 'test', null, array( 'extraPlugins' => array('test0', 'test1') ), array() ); $this->assertRegExp("/extraPlugins=..'test0','test1'../", $output); $this->assertRegExp("/dojoType=.p4cms.content.Editor/", $output); }
Content_Test_EditorHelperTest::testInstantiation | ( | ) |
Test instantiation.
{ $helper = new Content_View_Helper_Editor; $this->assertTrue($helper instanceof Content_View_Helper_Editor, 'Expected class'); }