From 6387a993a0a3c192d74b6844bfb41f4f442e6d74 Mon Sep 17 00:00:00 2001 From: Michael Bodnarchuk Date: Fri, 25 Jun 2021 01:35:42 +0300 Subject: [PATCH] Update DataFactory.php --- src/Codeception/Module/DataFactory.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 *