3 * Ethna_View_FormHelper_Test.php
6 * @author Yoshinari Takaoka <takaoka@beatcraft.com>
9 require_once ETHNA_INSTALL_BASE . '/test/Ethna_MockProject.php';
12 * Ethna_ViewClass のうち、フォームヘルパ
16 * @author Yoshinari Takaoka <takaoka@beatcraft.com>
19 class Ethna_View_FormHelper_Test extends Ethna_UnitTestBase
25 $this->project =& new Ethna_MockProject();
26 $this->project->create();
31 $this->project->delete();
32 unset($GLOBALS['_Ethna_controller']);
35 function test_formhelper_Textarea()
37 $action_name = $tpl_name = 'textareatest';
38 $action_skel = ETHNA_TEST_SKELDIR . 'skel.action.formhelper.php';
39 $this->project->runCmd('add-action',
46 $tpl_skel = ETHNA_TEST_SKELTPLDIR . 'skel.template.textarea.tpl';
47 $this->project->runCmd('add-template',
54 $submit_value = array(
55 'textarea_setactval' => 'input',
57 $result = $this->project->runMain($action_name, $submit_value);
59 // TODO: assert output