remove manually added config values in test

This commit is contained in:
Florian Thoma 2023-04-12 14:11:08 +10:00
parent c0722308af
commit 1dbb2bc5ba

View File

@ -717,21 +717,6 @@ PHP;
// note: Disable _fakewebroot manifest for this test // note: Disable _fakewebroot manifest for this test
$this->popManifests(); $this->popManifests();
// update config because test can't load config from actual class
Config::inst()->update(TestDataObject::class, 'db', [
'MyProperty' => 'Varchar',
'MyUntranslatedProperty' => 'Text'
]);
Config::inst()->update(TestDataObject::class, 'has_one', [
'HasOneRelation' => Member::class
]);
Config::inst()->update(TestDataObject::class, 'has_many', [
'HasManyRelation' => Member::class
]);
Config::inst()->update(TestDataObject::class, 'many_many', [
'ManyManyRelation' => Member::class
]);
$c = i18nTextCollector::create(); $c = i18nTextCollector::create();
// Collect from MyObject.php // Collect from MyObject.php