Phalcon\Test\Unit\Tag\TagTextAreaTest::testTextAreaWithSetDefault PHP Method

testTextAreaWithSetDefault() public method

Tests textArea with setDefault
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
    public function testTextAreaWithSetDefault()
    {
        $this->specify("textArea with setDefault returns invalid", function () {
            $options = ['x_name', 'name' => 'x_other', 'class' => 'x_class', 'size' => '10'];
            $expected = '<textarea id="x_name" name="x_other" ' . 'class="x_class" size="10">x_value</textarea';
            $this->tester->testFieldParameter('textArea', $options, $expected, false, 'setDefault');
        });
    }