From b529dc635350ef6499ff80bd78268f9fc4cb7b16 Mon Sep 17 00:00:00 2001 From: Serge Latyntcev Date: Mon, 12 Oct 2020 12:30:07 +1300 Subject: [PATCH] Amend TestRegistry* classes declaration --- code/TestRegistryDataObject.php | 4 ---- code/TestRegistryPage.php | 4 ---- 2 files changed, 8 deletions(-) diff --git a/code/TestRegistryDataObject.php b/code/TestRegistryDataObject.php index 12e2962..66bf931 100644 --- a/code/TestRegistryDataObject.php +++ b/code/TestRegistryDataObject.php @@ -6,10 +6,6 @@ use SilverStripe\ORM\DB; use SilverStripe\Registry\RegistryDataInterface; -if (!interface_exists(RegistryDataInterface::class)) { - return; -} - class TestRegistryDataObject extends DataObject implements RegistryDataInterface { private static $table_name = 'TestRegistryDataObject'; diff --git a/code/TestRegistryPage.php b/code/TestRegistryPage.php index a9673d4..390f1a6 100644 --- a/code/TestRegistryPage.php +++ b/code/TestRegistryPage.php @@ -6,10 +6,6 @@ use SilverStripe\Security\DefaultAdminService; use SilverStripe\Security\Member; -if (!class_exists(RegistryPage::class)) { - return; -} - class TestRegistryPage extends RegistryPage { public function requireDefaultRecords()