Phalcon\Test\Unit\Forms\Element\TextTest::testFormPrepareAttributesDefault PHP Method

testFormPrepareAttributesDefault() public method

    public function testFormPrepareAttributesDefault()
    {
        $this->specify("Attributes are not prepared properly (2)", function () {
            $element1 = new Text("name");
            $element1->setLabel('name');
            $element1->setAttributes(['class' => 'big-input']);
            expect($element1->prepareAttributes())->equals(['name', 'class' => 'big-input']);
        });
    }