| Total Complexity | 2 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class ControllerBaseTest extends UnitTestCase { |
||
| 18 | |||
| 19 | const ITEMS_PER_PAGE = 50; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Test page generation for various data set shapes. |
||
| 23 | * |
||
| 24 | * @covers ::getPage |
||
| 25 | * |
||
| 26 | * @dataProvider pageGenerationData |
||
| 27 | */ |
||
| 28 | public function testPageGeneration(int $requestedPage, int $count, int $expected) { |
||
| 29 | $actual = ControllerBase::getPage($count, $requestedPage, static::ITEMS_PER_PAGE); |
||
| 30 | $this->assertEquals($expected, $actual); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Data provider for testPageGeneration(). |
||
| 35 | * |
||
| 36 | * @see \Drupal\Tests\mongodb_watchdog\Unit\ControllerBaseTest::testPageGeneration() |
||
| 37 | * |
||
| 38 | * Coding standards are ignored for the data list for the sake of readability. |
||
| 39 | */ |
||
| 40 | public function pageGenerationData() { |
||
| 81 | } |
||
| 82 | |||
| 84 |
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