Phalcon\Test\Unit\Forms\Element\TextTest::testFormPrepareAttributes PHP Méthode

testFormPrepareAttributes() public méthode

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