We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 264-271 (lines=8) @@ | ||
261 | $this->crudPanel->addFields($this->unknownFieldTypeArray); |
|
262 | } |
|
263 | ||
264 | public function testAddFieldsForCreateForm() |
|
265 | { |
|
266 | $this->crudPanel->addFields($this->threeTextFieldsArray, 'create'); |
|
267 | ||
268 | $this->assertEquals(3, count($this->crudPanel->create_fields)); |
|
269 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->create_fields); |
|
270 | $this->assertEmpty($this->crudPanel->update_fields); |
|
271 | } |
|
272 | ||
273 | public function testAddFieldsForUpdateForm() |
|
274 | { |
|
@@ 273-280 (lines=8) @@ | ||
270 | $this->assertEmpty($this->crudPanel->update_fields); |
|
271 | } |
|
272 | ||
273 | public function testAddFieldsForUpdateForm() |
|
274 | { |
|
275 | $this->crudPanel->addFields($this->threeTextFieldsArray, 'update'); |
|
276 | ||
277 | $this->assertEquals(3, count($this->crudPanel->update_fields)); |
|
278 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->update_fields); |
|
279 | $this->assertEmpty($this->crudPanel->create_fields); |
|
280 | } |
|
281 | ||
282 | public function testBeforeField() |
|
283 | { |
|
@@ 577-585 (lines=9) @@ | ||
574 | $this->assertEquals(['field2', 'field3', 'field1'], array_keys($this->crudPanel->update_fields)); |
|
575 | } |
|
576 | ||
577 | public function testOrderFieldsEmptyList() |
|
578 | { |
|
579 | $this->crudPanel->addFields($this->threeTextFieldsArray); |
|
580 | ||
581 | $this->crudPanel->orderFields([]); |
|
582 | ||
583 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->create_fields); |
|
584 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->update_fields); |
|
585 | } |
|
586 | ||
587 | public function testOrderFieldsUnknownList() |
|
588 | { |