Skip to content

Commit 4721359

Browse files
committed
Update the integration test
1 parent 7b5838b commit 4721359

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/integration-test.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,16 @@ jobs:
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

0 commit comments

Comments
 (0)