Phalcon\Test\Unit\Tag\TagDateTimeLocalFieldTest::testDateTimeLocalFieldStringParameter PHP Méthode

testDateTimeLocalFieldStringParameter() public méthode

Tests dateTimeLocalField with string as a parameter
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
    public function testDateTimeLocalFieldStringParameter()
    {
        $this->specify("dateTimeLocalField with string parameter returns invalid HTML Strict", function () {
            $options = 'x_name';
            $expected = '<input type="datetime-local" id="x_name" ' . 'name="x_name"';
            $this->tester->testFieldParameter('dateTimeLocalField', $options, $expected, false);
        });
        $this->specify("dateTimeLocalField with string parameter returns invalid HTML XHTML", function () {
            $options = 'x_name';
            $expected = '<input type="datetime-local" id="x_name" ' . 'name="x_name"';
            $this->tester->testFieldParameter('dateTimeLocalField', $options, $expected, true);
        });
    }