mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
MNT Don't require silverstripe/registry (#123)
Just because registry needs frameworktest doesn't mean frameworktest should need registry
This commit is contained in:
parent
59d7240b88
commit
7b9778253f
@ -6,6 +6,10 @@ use SilverStripe\ORM\DataObject;
|
|||||||
use SilverStripe\ORM\DB;
|
use SilverStripe\ORM\DB;
|
||||||
use SilverStripe\Registry\RegistryDataInterface;
|
use SilverStripe\Registry\RegistryDataInterface;
|
||||||
|
|
||||||
|
if (!class_exists(RegistryDataInterface::class)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
class TestRegistryDataObject extends DataObject implements RegistryDataInterface
|
class TestRegistryDataObject extends DataObject implements RegistryDataInterface
|
||||||
{
|
{
|
||||||
private static $table_name = 'TestRegistryDataObject';
|
private static $table_name = 'TestRegistryDataObject';
|
||||||
|
@ -6,6 +6,10 @@ use SilverStripe\Registry\RegistryPage;
|
|||||||
use SilverStripe\Security\DefaultAdminService;
|
use SilverStripe\Security\DefaultAdminService;
|
||||||
use SilverStripe\Security\Member;
|
use SilverStripe\Security\Member;
|
||||||
|
|
||||||
|
if (!class_exists(RegistryPage::class)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
class TestRegistryPage extends RegistryPage
|
class TestRegistryPage extends RegistryPage
|
||||||
{
|
{
|
||||||
public function requireDefaultRecords()
|
public function requireDefaultRecords()
|
||||||
|
@ -20,8 +20,7 @@
|
|||||||
"silverstripe/cms": "^5",
|
"silverstripe/cms": "^5",
|
||||||
"guzzlehttp/guzzle": "^7.4.5",
|
"guzzlehttp/guzzle": "^7.4.5",
|
||||||
"fzaninotto/faker": "^1.9.2",
|
"fzaninotto/faker": "^1.9.2",
|
||||||
"silverstripe/vendor-plugin": "^2",
|
"silverstripe/vendor-plugin": "^2"
|
||||||
"silverstripe/registry": "^3"
|
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"expose": [
|
"expose": [
|
||||||
|
Loading…
Reference in New Issue
Block a user