Skip to content

Commit 2a4ac0f

Browse files
committed
Fix WeekType tests
1 parent 3201172 commit 2a4ac0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Extension/AbstractBootstrap3LayoutTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2771,11 +2771,11 @@ public function testWeekChoices()
27712771
{
27722772
$this->requiresFeatureSet(404);
27732773

2774-
$data = ['year' => date('Y'), 'week' => 1];
2774+
$data = ['year' => (int) date('Y'), 'week' => 1];
27752775

27762776
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\WeekType', $data, [
27772777
'input' => 'array',
2778-
'required' => false,
2778+
'widget' => 'choice',
27792779
]);
27802780

27812781
$this->assertWidgetMatchesXpath($form->createView(), ['attr' => ['class' => 'my&class']],

0 commit comments

Comments
 (0)