Skip to content

Commit

Permalink
Fix form integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
dzubchik committed Mar 9, 2017
1 parent 547e92b commit 009c5f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/FormIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ public function it_works_with_a_standard_use_case_for_command_objects()
$form = $this->factory->create(new OrderSeatsFormType());
$form->submit([
'userId' => 1,
'seatNumbers' => [1, 2]
'seatNumbers' => ['1', '2']
]);
$command = $form->getData();
$command->id = $id;

$expected = new OrderSeats();
$expected->id = $id;
$expected->userId = 1;
$expected->seatNumbers = [1, 2];
$expected->seatNumbers = ['1', '2'];
$this->assertEquals($expected, $command);
}
}

0 comments on commit 009c5f4

Please sign in to comment.