We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 501-511 (lines=11) @@ | ||
498 | $this->assertEquals(array_keys($this->expectedThreeTextFieldsArray), array_keys($this->crudPanel->update_fields)); |
|
499 | } |
|
500 | ||
501 | public function testRemoveFieldsFromCreateForm() |
|
502 | { |
|
503 | $this->crudPanel->addFields($this->threeTextFieldsArray); |
|
504 | ||
505 | $this->crudPanel->removeFields(['field1'], 'create'); |
|
506 | ||
507 | $this->assertEquals(2, count($this->crudPanel->create_fields)); |
|
508 | $this->assertEquals(3, count($this->crudPanel->update_fields)); |
|
509 | $this->assertEquals(['field2', 'field3'], array_keys($this->crudPanel->create_fields)); |
|
510 | $this->assertEquals(array_keys($this->expectedThreeTextFieldsArray), array_keys($this->crudPanel->update_fields)); |
|
511 | } |
|
512 | ||
513 | public function testRemoveFieldsFromUpdateForm() |
|
514 | { |
|
@@ 513-523 (lines=11) @@ | ||
510 | $this->assertEquals(array_keys($this->expectedThreeTextFieldsArray), array_keys($this->crudPanel->update_fields)); |
|
511 | } |
|
512 | ||
513 | public function testRemoveFieldsFromUpdateForm() |
|
514 | { |
|
515 | $this->crudPanel->addFields($this->threeTextFieldsArray); |
|
516 | ||
517 | $this->crudPanel->removeFields(['field1'], 'update'); |
|
518 | ||
519 | $this->assertEquals(3, count($this->crudPanel->create_fields)); |
|
520 | $this->assertEquals(2, count($this->crudPanel->update_fields)); |
|
521 | $this->assertEquals(array_keys($this->expectedThreeTextFieldsArray), array_keys($this->crudPanel->create_fields)); |
|
522 | $this->assertEquals(['field2', 'field3'], array_keys($this->crudPanel->update_fields)); |
|
523 | } |
|
524 | ||
525 | public function testRemoveUnknownFields() |
|
526 | { |