File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 9696 - name : Create factory and fixtures
9797 working-directory : e2e-app
9898 run : |
99- php bin/console make:factory ProductFactory --no-interaction
99+ expect <<'EOD'
100+ spawn php bin/console make:factory
101+ expect "Entity, Document or class" { send "0\r" }
102+ expect eof
103+ EOD
104+
100105 php bin/console make:fixtures --no-interaction
101- sed -i 's|// TODO: Implement the load() method|use App\\Factory\\ProductFactory;\n\n ProductFactory::createMany(10);|' src/DataFixtures/AppFixtures.php
106+
107+ sed -i 's|use Doctrine\\Persistence\\ObjectManager;|use Doctrine\\Persistence\\ObjectManager;\nuse App\\Factory\\ProductFactory;|' src/DataFixtures/AppFixtures.php
108+ sed -i 's|// \$product = new Product();|ProductFactory::createMany(10);|' src/DataFixtures/AppFixtures.php
102109
103110 - name : Load fixtures
104111 working-directory : e2e-app
You can’t perform that action at this time.
0 commit comments