|
@@ 23-30 (lines=8) @@
|
| 20 |
|
return $crawler; |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
public function testIfChoiceRenderedCorrectly() |
| 24 |
|
{ |
| 25 |
|
$crawler = $this->getCrawlerForRequest('GET', '/_tests/datepicker'); |
| 26 |
|
|
| 27 |
|
$this->assertEquals(1, $crawler->filter('select#form_date_example1_month')->count()); |
| 28 |
|
$this->assertEquals(1, $crawler->filter('select#form_date_example1_day')->count()); |
| 29 |
|
$this->assertEquals(1, $crawler->filter('select#form_date_example1_year')->count()); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
public function testIfTextRenderedCorrectly() |
| 33 |
|
{ |
|
@@ 32-39 (lines=8) @@
|
| 29 |
|
$this->assertEquals(1, $crawler->filter('select#form_date_example1_year')->count()); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
public function testIfTextRenderedCorrectly() |
| 33 |
|
{ |
| 34 |
|
$crawler = $this->getCrawlerForRequest('GET', '/_tests/datepicker'); |
| 35 |
|
|
| 36 |
|
$this->assertEquals(1, $crawler->filter('input#form_date_example2_month')->count()); |
| 37 |
|
$this->assertEquals(1, $crawler->filter('input#form_date_example2_day')->count()); |
| 38 |
|
$this->assertEquals(1, $crawler->filter('input#form_date_example2_year')->count()); |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
public function testIfSingleTextRenderedCorrectly() |
| 42 |
|
{ |