| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function testRegisterFieldGroup() : void |
||
| 26 | { |
||
| 27 | $config = 'this is a config'; |
||
| 28 | $fieldGroup = 'this is a field group'; |
||
| 29 | $returnValue = 'this is a return value'; |
||
| 30 | Mockery::mock('alias:ACFComposer\ResolveConfig') |
||
| 31 | ->shouldReceive('forFieldGroup') |
||
| 32 | ->with($config) |
||
| 33 | ->once() |
||
| 34 | ->andReturn($fieldGroup); |
||
| 35 | Functions\expect('acf_add_local_field_group') |
||
| 36 | ->with($fieldGroup) |
||
| 37 | ->once() |
||
| 38 | ->andReturn($returnValue); |
||
| 39 | $output = ACFComposer::registerFieldGroup($config); |
||
| 40 | $this->assertEquals($returnValue, $output); |
||
| 41 | } |
||
| 43 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths