Fixtures
Last updated
Was this helpful?
Last updated
Was this helpful?
Fixtures are used mainly for testing, but also for having your shop in a certain state, and having defined data - they ensure that there is a fixed environment in which your application is working.
Note
The way Fixtures are designed in Sylius is well described in the .
To check what fixtures are defined in Sylius run:
The recommended way to load the predefined set of Sylius fixtures is here:
All files that serve for loading fixtures of Sylius are placed in the Sylius/Bundle/CoreBundle/Fixture/*
directory.
And the specified data for fixtures is stored in the file.
load_default_locale
Determine if default shop locale (defined as %locale%) parameter will be loaded. True by default.
locales
Array of locale codes, which will be loaded. Empty by default.