| 1 | <?php |
||
| 2 | |||
| 3 | namespace LeKoala\CmsActions\Test; |
||
| 4 | |||
| 5 | use SilverStripe\Dev\TestOnly; |
||
| 6 | use LeKoala\CmsActions\CustomAction; |
||
| 7 | use SilverStripe\CMS\Model\SiteTree; |
||
|
0 ignored issues
–
show
|
|||
| 8 | use SilverStripe\ORM\DataObject; |
||
| 9 | |||
| 10 | if (!class_exists(SiteTree::class)) { |
||
| 11 | return; |
||
| 12 | } |
||
| 13 | |||
| 14 | class Test_ActionsPage extends DataObject implements TestOnly |
||
| 15 | { |
||
| 16 | private static $table_name = 'ActionsPage'; |
||
|
0 ignored issues
–
show
|
|||
| 17 | |||
| 18 | public function getCMSActions() |
||
| 19 | { |
||
| 20 | $actions = parent::getCMSActions(); |
||
| 21 | $actions->push(new CustomAction('testAction', 'Test Action')); |
||
| 22 | return $actions; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function testAction() |
||
| 26 | { |
||
| 27 | return 'called testAction'; |
||
| 28 | } |
||
| 29 | } |
||
| 30 |
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