We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 450-458 (lines=9) @@ | ||
447 | $this->assertEquals(['field2', 'field1', 'field3'], array_keys($this->crudPanel->fields())); |
|
448 | } |
|
449 | ||
450 | public function testOrderFieldsCreateForm() |
|
451 | { |
|
452 | $this->crudPanel->addFields($this->threeTextFieldsArray); |
|
453 | ||
454 | $this->crudPanel->orderFields(['field2', 'field1', 'field3'], 'create'); |
|
455 | ||
456 | $this->assertEquals(['field2', 'field1', 'field3'], array_keys($this->crudPanel->fields())); |
|
457 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->fields()); |
|
458 | } |
|
459 | ||
460 | public function testOrderFieldsUpdateForm() |
|
461 | { |
|
@@ 460-468 (lines=9) @@ | ||
457 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->fields()); |
|
458 | } |
|
459 | ||
460 | public function testOrderFieldsUpdateForm() |
|
461 | { |
|
462 | $this->crudPanel->addFields($this->threeTextFieldsArray); |
|
463 | ||
464 | $this->crudPanel->orderFields(['field2', 'field1', 'field3'], 'update'); |
|
465 | ||
466 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->fields()); |
|
467 | $this->assertEquals(['field2', 'field1', 'field3'], array_keys($this->crudPanel->fields())); |
|
468 | } |
|
469 | ||
470 | public function testOrderFieldsIncompleteList() |
|
471 | { |
@@ 60-67 (lines=8) @@ | ||
57 | $this->assertEquals(3, count($this->crudPanel->getOperationSetting('save_actions'))); |
|
58 | } |
|
59 | ||
60 | public function testAddOneSaveAction() |
|
61 | { |
|
62 | $this->crudPanel->setupDefaultSaveActions(); |
|
63 | $this->crudPanel->addSaveAction($this->singleSaveAction); |
|
64 | ||
65 | $this->assertEquals(4, count($this->crudPanel->getOperationSetting('save_actions'))); |
|
66 | $this->assertEquals(['save_and_back', 'save_and_edit', 'save_and_new', 'save_action_one'], array_keys($this->crudPanel->getOperationSetting('save_actions'))); |
|
67 | } |
|
68 | ||
69 | public function testAddMultipleSaveActions() |
|
70 | { |
|
@@ 69-76 (lines=8) @@ | ||
66 | $this->assertEquals(['save_and_back', 'save_and_edit', 'save_and_new', 'save_action_one'], array_keys($this->crudPanel->getOperationSetting('save_actions'))); |
|
67 | } |
|
68 | ||
69 | public function testAddMultipleSaveActions() |
|
70 | { |
|
71 | $this->crudPanel->setupDefaultSaveActions(); |
|
72 | $this->crudPanel->addSaveActions($this->multipleSaveActions); |
|
73 | ||
74 | $this->assertEquals(5, count($this->crudPanel->getOperationSetting('save_actions'))); |
|
75 | $this->assertEquals(['save_and_back', 'save_and_edit', 'save_and_new', 'save_action_one', 'save_action_two'], array_keys($this->crudPanel->getOperationSetting('save_actions'))); |
|
76 | } |
|
77 | ||
78 | public function testRemoveOneSaveAction() |
|
79 | { |