mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
FIX Class manifest was still seeing the files (#125)
This commit is contained in:
parent
936f286e09
commit
63c3550fbb
@ -6,12 +6,9 @@ use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\ORM\DB;
|
||||
use SilverStripe\Registry\RegistryDataInterface;
|
||||
|
||||
if (!interface_exists(RegistryDataInterface::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
class TestRegistryDataObject extends DataObject implements RegistryDataInterface
|
||||
{
|
||||
if (interface_exists(RegistryDataInterface::class)) {
|
||||
class TestRegistryDataObject extends DataObject implements RegistryDataInterface
|
||||
{
|
||||
private static $table_name = 'TestRegistryDataObject';
|
||||
|
||||
private static $db = [
|
||||
@ -871,4 +868,5 @@ class TestRegistryDataObject extends DataObject implements RegistryDataInterface
|
||||
|
||||
DB::alteration_message('Added default records to DefaultRegistryDataObject table', 'created');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,11 +7,8 @@ use SilverStripe\Security\DefaultAdminService;
|
||||
use SilverStripe\Security\Member;
|
||||
|
||||
if (!class_exists(RegistryPage::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
class TestRegistryPage extends RegistryPage
|
||||
{
|
||||
class TestRegistryPage extends RegistryPage
|
||||
{
|
||||
public function requireDefaultRecords()
|
||||
{
|
||||
if (!DataObject::get_one(static::class)) {
|
||||
@ -29,4 +26,5 @@ class TestRegistryPage extends RegistryPage
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user