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

testFormPrepareAttributes() public method

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