I\'m following along with this blog to create unit tests that use my data fixtures as a base. The relevant code:
namespace Tests\\AppBundle\\Repository;
use Sy
As suggested by Denis, try adding Doctrine bundles via componser:
composer require doctrine/doctrine-bundle
composer require doctrine/doctrine-fixtures-bundle --dev
doctrine/doctrine-bundle
and doctrine/doctrine-fixtures-bundle
should be installed to run doctrine:schema
and doctrine:fixtures
commands
Your problem is that you are using the wrong Application class for this.
Have a look at your bin/console php file. github link
Change:
use Symfony\Component\Console\Application;
to
use Symfony\Bundle\FrameworkBundle\Console\Application;