Perforce Chronicle 2012.2/486814
API Documentation

Content_Test_EditorHelperTest Class Reference

Test methods for the content editor view helper. More...

List of all members.

Public Member Functions

 setup ()
 Test setup.
 testExtraPluginOutput ()
 Verify non-nested options get properly output.
 testInstantiation ()
 Test instantiation.

Detailed Description

Test methods for the content editor view helper.

Copyright:
2011-2012 Perforce Software. All rights reserved
License:
Please see LICENSE.txt in top-level folder of this distribution.
Version:
2012.2/486814

Member Function Documentation

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');
    }

The documentation for this class was generated from the following file: