Skip to content

ajouve/doctrine-fixtures-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

doctrine-fixtures-test

Web test case to load yours Doctrines Fixtures

Example

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages