| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class FeatureContext extends ElementalFeatureContext |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @Then /^I should( not |\s+)see the thumbnail image for block (\d+)$/i |
||
| 15 | * |
||
| 16 | * @param string $negative |
||
| 17 | * @param int $position |
||
| 18 | * |
||
| 19 | */ |
||
| 20 | public function iShouldSeeTheThumbnailImageForBlock($negative, $position) |
||
| 21 | { |
||
| 22 | $iShouldNotSee = $negative === ' not '; |
||
| 23 | |||
| 24 | $thumbnailImage = $this->findThumbnailImage($position); |
||
| 25 | |||
| 26 | if ($iShouldNotSee) { |
||
| 27 | assertNull($thumbnailImage, 'Thumbnail image displayed (but shouldn\'t)'); |
||
| 28 | } else { |
||
| 29 | assertNotNull($thumbnailImage, 'Thumbnail image not displayed (but should be)'); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * Returns the thumbnail image for a specific block if it exists |
||
| 36 | * |
||
| 37 | * @param int $position |
||
| 38 | * @return NodeElement|null |
||
| 39 | */ |
||
| 40 | protected function findThumbnailImage($position) |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
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