| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 66 | public function testGetExistingCustomField(array $data, string $expectedResult): void |
||
| 67 | { |
||
| 68 | // setup |
||
| 69 | $model = new \CustomFieldsModelMock('entity'); |
||
| 70 | $model->selectResult = $data; |
||
| 71 | |||
| 72 | // test body |
||
| 73 | $actualResult = $model->getFieldForObject(1, 'id', 'default'); |
||
| 74 | |||
| 75 | // assertions |
||
| 76 | $this->assertEquals($expectedResult, $actualResult); |
||
| 77 | } |
||
| 79 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.