Skip to content

Commit

Permalink
updated testGetGroupedFields test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sztig committed Nov 20, 2024
1 parent 9d63550 commit d5f9a7f
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ public function testGetGroupedFields(): void
->withConsecutive()
->willReturnOnConsecutiveCalls('group_1', 'group_2', 'group_2');

$fieldsGroupsListMock
->expects($this->once())
->method('getGroups')
->willReturn([
'group_1' => 'Group 1',
'group_2' => 'Group 2',
]);

$subject = new GroupedContentFormFieldsProvider($fieldsGroupsListMock);

$form1 = $this->getFormMockWithFieldData(
Expand All @@ -56,10 +48,10 @@ public function testGetGroupedFields(): void
$result = $subject->getGroupedFields([$form1, $form2, $form3]);

$expected = [
'Group 1' => [
'group_1' => [
0 => 'first_field',
],
'Group 2' => [
'group_2' => [
0 => 'second_field',
1 => 'third_field',
],
Expand Down

0 comments on commit d5f9a7f

Please sign in to comment.