Skip to content

Commit 6e904e2

Browse files
committed
Update README
1 parent 3bb6e01 commit 6e904e2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,17 @@ public function testSomethingWithMultipleProducts()
300300
301301
```
302302

303+
### Config Fixtures
304+
305+
With the config fixture you can set a configuration value globally, i.e. it will ensure that it is not only set in the default scope but also in all store scopes:
306+
```
307+
ConfigFixture::setGlobal('general/store_information/name', 'Ye Olde Wizard Shop');
308+
```
309+
310+
It uses `MutableScopeConfigInterface`, so the configuration is not persisted in the database. Use `@magentoAppIsolation enabled` in your test to make sure that changes are reverted in subsequent tests.
311+
312+
You can also set configuration values explicitly for stores with `ConfigFixture::setForStore()`
313+
303314
## Credits
304315

305316
- [Fabian Schmengler][link-author]

0 commit comments

Comments
 (0)