Passed
Pull Request — master (#774)
by
unknown
05:46
created

tests/TopPage/TestChildPage.php (4 issues)

1
<?php
2
3
namespace DNADesign\Elemental\Tests\TopPage;
4
5
use DNADesign\Elemental\Extensions\ElementalPageExtension;
6
use Page;
0 ignored issues
show
The type Page was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use SilverStripe\Dev\TestOnly;
8
9
/**
10
 * Class TestChildPage
11
 *
12
 * @method TestContent TestContent()
13
 * @mixin ElementalPageExtension
14
 * @package DNADesign\Elemental\Tests\TopPage
15
 */
16
class TestChildPage extends Page implements TestOnly
17
{
18
    /**
19
     * @var string
20
     */
21
    private static $table_name = 'TestChildPage';
0 ignored issues
show
The private property $table_name is not used, and could be removed.
Loading history...
22
23
    /**
24
     * @var array
25
     */
26
    private static $belongs_to = [
0 ignored issues
show
The private property $belongs_to is not used, and could be removed.
Loading history...
27
        'TestContent' => TestContent::class . '.ChildPage',
28
    ];
29
30
    /**
31
     * @var array
32
     */
33
    private static $extensions = [
0 ignored issues
show
The private property $extensions is not used, and could be removed.
Loading history...
34
        ElementalPageExtension::class,
35
    ];
36
}
37