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

testTextAreaArrayParameterWithNameNoId() public method

Tests textArea with name and no id in parameter
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
    public function testTextAreaArrayParameterWithNameNoId()
    {
        $this->specify("textArea with array parameter with name no id 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"></textarea';
            $this->tester->testFieldParameter('textArea', $options, $expected, false);
        });
    }