diff --git a/src/Codeception/Module/DataFactory.php b/src/Codeception/Module/DataFactory.php index 5316847..7f0acdc 100644 --- a/src/Codeception/Module/DataFactory.php +++ b/src/Codeception/Module/DataFactory.php @@ -27,10 +27,14 @@ * } * ``` * - * Generation rules can be defined in a factories file. You will need to create `factories.php` (it is recommended to store it in `_support` dir) + * Generation rules can be defined in a factories file. + * Create a folder for factories files: `tests/_support/factories`. + * + * Create an ampty PHP file inside that folder `factories.php`. * Follow [FactoryMuffin documentation](https://github.com/thephpleague/factory-muffin) to set valid rules. - * Random data provided by [Faker](https://github.com/fzaninotto/Faker) library. + * Randomly generated data provided by [Faker](https://github.com/fzaninotto/Faker) library. * + * Here is the sample factory file: * ```php *