We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 208-216 (lines=9) @@ | ||
205 | ], |
|
206 | ]; |
|
207 | ||
208 | public function testAddFieldByName() |
|
209 | { |
|
210 | $this->crudPanel->addField('field1'); |
|
211 | ||
212 | $this->assertEquals(1, count($this->crudPanel->create_fields)); |
|
213 | $this->assertEquals(1, count($this->crudPanel->update_fields)); |
|
214 | $this->assertEquals($this->expectedOneTextFieldArray, $this->crudPanel->create_fields); |
|
215 | $this->assertEquals($this->expectedOneTextFieldArray, $this->crudPanel->update_fields); |
|
216 | } |
|
217 | ||
218 | public function testAddFieldsByName() |
|
219 | { |
|
@@ 228-236 (lines=9) @@ | ||
225 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->update_fields); |
|
226 | } |
|
227 | ||
228 | public function testAddFieldsAsArray() |
|
229 | { |
|
230 | $this->crudPanel->addFields($this->threeTextFieldsArray); |
|
231 | ||
232 | $this->assertEquals(3, count($this->crudPanel->create_fields)); |
|
233 | $this->assertEquals(3, count($this->crudPanel->update_fields)); |
|
234 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->create_fields); |
|
235 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->update_fields); |
|
236 | } |
|
237 | ||
238 | public function testAddFieldsDifferentTypes() |
|
239 | { |
|
@@ 238-246 (lines=9) @@ | ||
235 | $this->assertEquals($this->expectedThreeTextFieldsArray, $this->crudPanel->update_fields); |
|
236 | } |
|
237 | ||
238 | public function testAddFieldsDifferentTypes() |
|
239 | { |
|
240 | $this->crudPanel->addFields($this->multipleFieldTypesArray); |
|
241 | ||
242 | $this->assertEquals(12, count($this->crudPanel->create_fields)); |
|
243 | $this->assertEquals(12, count($this->crudPanel->update_fields)); |
|
244 | $this->assertEquals($this->expectedMultipleFieldTypesArray, $this->crudPanel->create_fields); |
|
245 | $this->assertEquals($this->expectedMultipleFieldTypesArray, $this->crudPanel->update_fields); |
|
246 | } |
|
247 | ||
248 | public function testAddFieldsInvalidArray() |
|
249 | { |