mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
fa0b559a7b
Add missing unit tests for SiteTreeFolderExtension
25 lines
535 B
PHP
25 lines
535 B
PHP
<?php
|
|
|
|
namespace SilverStripe\CMS\Tests\Model\SiteTreeFolderExtensionTest;
|
|
|
|
use Page;
|
|
use SilverStripe\Assets\File;
|
|
use SilverStripe\CMS\Model\SiteTreeFolderExtension;
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
/**
|
|
* @mixin SiteTreeFolderExtension
|
|
*/
|
|
class PageWithFile extends Page implements TestOnly
|
|
{
|
|
private static $table_name = 'SiteTreeFolderExtensionTest_PageWithFile';
|
|
|
|
private static $has_one = [
|
|
'LinkedFile' => File::class,
|
|
];
|
|
|
|
private static $extensions = [
|
|
SiteTreeFolderExtension::class,
|
|
];
|
|
}
|