Web test case to load yours Doctrines Fixtures
client->getContainer()->get('doctrine'); $this->articleRepository = $doctrine->getRepository('AppBundle:Article'); } public function testFindAll() { $articles = $this->articleRepository->findAll(); $this->assertEquals('My first article', $articles[0]->getTitle()); } } Have a look to the folloing link for more informations [http://blog.ajouve.com/symfony2/phpunit/doctrine2/2015/11/15/set-up-doctrine2-fixtures-when-testing-with-phpunit-and-sqlite.html](http://blog.ajouve.com/symfony2/phpunit/doctrine2/2015/11/15/set-up-doctrine2-fixtures-when-testing-with-phpunit-and-sqlite.html)ajouve/doctrine-fixtures-test
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published