Phalcon\Test\Unit\Tag\TagWeekFieldTest::testWeekFieldWithDisplayTo PHP Method

testWeekFieldWithDisplayTo() public method

Tests weekField with displayTo
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
    public function testWeekFieldWithDisplayTo()
    {
        $this->specify("weekField with displayTo returns invalid HTML Strict", function () {
            $options = ['x_name', 'name' => 'x_other', 'class' => 'x_class', 'size' => '10'];
            $expected = '<input type="week" id="x_name" ' . 'name="x_other" value="x_value" class="x_class" ' . 'size="10"';
            $this->tester->testFieldParameter('weekField', $options, $expected, false, 'displayTo');
        });
        $this->specify("weekField with displayTo returns invalid HTML XHTML", function () {
            $options = ['x_name', 'name' => 'x_other', 'class' => 'x_class', 'size' => '10'];
            $expected = '<input type="week" id="x_name" ' . 'name="x_other" value="x_value" class="x_class" ' . 'size="10"';
            $this->tester->testFieldParameter('weekField', $options, $expected, true, 'displayTo');
        });
    }