We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 387-395 (lines=9) @@ | ||
| 384 | $this->assertEquals(array_keys($this->expectedThreeTextFieldsArray), array_keys($this->crudPanel->fields())); |
|
| 385 | } |
|
| 386 | ||
| 387 | public function testRemoveFieldsByName() |
|
| 388 | { |
|
| 389 | $this->crudPanel->addFields($this->threeTextFieldsArray); |
|
| 390 | ||
| 391 | $this->crudPanel->removeFields(['field1']); |
|
| 392 | ||
| 393 | $this->assertEquals(2, count($this->crudPanel->fields())); |
|
| 394 | $this->assertEquals(['field2', 'field3'], array_keys($this->crudPanel->fields())); |
|
| 395 | } |
|
| 396 | ||
| 397 | public function testRemoveFieldsByNameInvalidArray() |
|
| 398 | { |
|
| @@ 411-418 (lines=8) @@ | ||
| 408 | $this->assertEquals(array_keys($this->expectedThreeTextFieldsArray), array_keys($this->crudPanel->fields())); |
|
| 409 | } |
|
| 410 | ||
| 411 | public function testRemoveFieldsFromCreateForm() |
|
| 412 | { |
|
| 413 | $this->crudPanel->addFields($this->threeTextFieldsArray); |
|
| 414 | $this->crudPanel->removeFields(['field1']); |
|
| 415 | ||
| 416 | $this->assertEquals(2, count($this->crudPanel->fields())); |
|
| 417 | $this->assertEquals(['field2', 'field3'], array_keys($this->crudPanel->fields())); |
|
| 418 | } |
|
| 419 | ||
| 420 | public function testRemoveFieldsFromUpdateForm() |
|
| 421 | { |
|
| @@ 420-427 (lines=8) @@ | ||
| 417 | $this->assertEquals(['field2', 'field3'], array_keys($this->crudPanel->fields())); |
|
| 418 | } |
|
| 419 | ||
| 420 | public function testRemoveFieldsFromUpdateForm() |
|
| 421 | { |
|
| 422 | $this->crudPanel->addFields($this->threeTextFieldsArray); |
|
| 423 | $this->crudPanel->removeFields(['field1']); |
|
| 424 | ||
| 425 | $this->assertEquals(2, count($this->crudPanel->fields())); |
|
| 426 | $this->assertEquals(['field2', 'field3'], array_keys($this->crudPanel->fields())); |
|
| 427 | } |
|
| 428 | ||
| 429 | public function testRemoveUnknownFields() |
|
| 430 | { |
|
| @@ 86-92 (lines=7) @@ | ||
| 83 | $this->assertEquals(['save_and_back', 'save_and_edit'], array_keys($this->crudPanel->getOperationSetting('save_actions'))); |
|
| 84 | } |
|
| 85 | ||
| 86 | public function testRemoveMultipleSaveActions() |
|
| 87 | { |
|
| 88 | $this->crudPanel->setupDefaultSaveActions(); |
|
| 89 | $this->crudPanel->removeSaveActions(['save_and_new', 'save_and_edit']); |
|
| 90 | $this->assertEquals(1, count($this->crudPanel->getOperationSetting('save_actions'))); |
|
| 91 | $this->assertEquals(['save_and_back'], array_keys($this->crudPanel->getOperationSetting('save_actions'))); |
|
| 92 | } |
|
| 93 | ||
| 94 | public function testReplaceSaveActionsWithOneSaveAction() |
|
| 95 | { |
|