silverstripe /
silverstripe-widgets
| 1 | <?php |
||
| 2 | |||
| 3 | namespace SilverStripe\Widgets\Tests\WidgetControllerTest; |
||
| 4 | |||
| 5 | use PageController; |
||
|
0 ignored issues
–
show
|
|||
| 6 | use ReflectionClass; |
||
| 7 | use SilverStripe\Dev\TestOnly; |
||
| 8 | use SilverStripe\View\SSViewer; |
||
| 9 | use SilverStripe\Widgets\Tests\WidgetControllerTest\TestPage; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @package cms |
||
| 13 | * @subpackage tests |
||
| 14 | */ |
||
| 15 | class TestPageController extends PageController implements TestOnly |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Template selection doesnt work in test folders, so we add a test theme a template name. |
||
| 19 | */ |
||
| 20 | public function getViewer($action) |
||
| 21 | { |
||
| 22 | SSViewer::add_themes(['silverstripe/widgets:/tests/WidgetControllerTest']); |
||
| 23 | return new SSViewer(TestPage::class); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |
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