Codeception / Codeception/module-doctrine

loadFixtures() doesn't work with Symfony's dependency injection

オープン
#12 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
4
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

When the fixture class is a Symfony service with normal dependency injection (i.e. constructor arguments), loading them with `$I->loadFixtures(AppFixtures::class)` leads to this error message:
> [ArgumentCountError] Too few arguments to function App\DataFixtures\AppFixtures::__construct(), 0 passed in /.../vendor/codeception/module-doctrine2/src/Codeception/Module/Doctrine2.php on line 731 and exactly 4 expected

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。