Beispiel #1
0
 public function testWeek()
 {
     $input = Input::week();
     $this->genericElementTest($input);
     $this->genericInputTest($input, 'week');
     //Values
     $input->val('2014-W55');
     $this->assertFalse($input->isValid());
     $input->val('2014-W16');
     $this->assertTrue($input->isValid());
     $this->assertEquals('2014-W16', $input->val());
     $input->max('2014-W15');
     $this->assertFalse($input->isValid());
     $input->max('2014-W16');
     $this->assertTrue($input->isValid());
     $input->max('2014-W17');
     $this->assertTrue($input->isValid());
     $input->min('2014-W17');
     $this->assertFalse($input->isValid());
 }