MNT Don't require silverstripe/registry (#123)

Just because registry needs frameworktest doesn't mean frameworktest
should need registry
This commit is contained in:
Guy Sartorelli 2022-09-15 17:02:03 +12:00 committed by GitHub
parent 59d7240b88
commit 7b9778253f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,10 @@ use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\Registry\RegistryDataInterface;
if (!class_exists(RegistryDataInterface::class)) {
return;
}
class TestRegistryDataObject extends DataObject implements RegistryDataInterface
{
private static $table_name = 'TestRegistryDataObject';

View File

@ -6,6 +6,10 @@ use SilverStripe\Registry\RegistryPage;
use SilverStripe\Security\DefaultAdminService;
use SilverStripe\Security\Member;
if (!class_exists(RegistryPage::class)) {
return;
}
class TestRegistryPage extends RegistryPage
{
public function requireDefaultRecords()

View File

@ -20,8 +20,7 @@
"silverstripe/cms": "^5",
"guzzlehttp/guzzle": "^7.4.5",
"fzaninotto/faker": "^1.9.2",
"silverstripe/vendor-plugin": "^2",
"silverstripe/registry": "^3"
"silverstripe/vendor-plugin": "^2"
},
"extra": {
"expose": [