2017 © Pedro Peláez
 

library doctrine-fixtures-test

Fixture test case for Doctrine Fixture and PHPUnit

image

ajouve/doctrine-fixtures-test

Fixture test case for Doctrine Fixture and PHPUnit

  • Thursday, October 20, 2016
  • by ajouve
  • Repository
  • 1 Watchers
  • 0 Stars
  • 251 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

doctrine-fixtures-test

Web test case to load yours Doctrines Fixtures, (*1)

Example

<?php, (*2)

namespace AppBundle\Tests\Functional\Repository;, (*3)

use Doctrine\ORM\EntityRepository; use DoctrineFixturesTest\FixtureTestCase;, (*4)

class ArticleRepositoryTest extends FixtureTestCase
{
    /** @var EntityRepository */
    private $articleRepository;

    public function setUp()
    {
        parent::setUp();

        $doctrine = $this->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, (*5)

The Versions

20/10 2016

dev-master

9999999-dev

Fixture test case for Doctrine Fixture and PHPUnit

  Sources   Download

MIT

The Requires

 

by Antoine Jouve

20/10 2016

v1.0.0

1.0.0.0

Fixture test case for Doctrine Fixture and PHPUnit

  Sources   Download

MIT

The Requires

 

by Antoine Jouve

28/01 2016

v0.1.2

0.1.2.0

Fixture test case for Doctrine Fixture and PHPUnit

  Sources   Download

MIT

The Requires

 

by Antoine Jouve

15/11 2015

v0.1.1

0.1.1.0

Fixture test case for Doctrine Fixture and PHPUnit

  Sources   Download

MIT

The Requires

 

by Antoine Jouve

15/11 2015

v0.1.0

0.1.0.0

Fixture test case for Doctrine Fixture and PHPUnit

  Sources   Download

MIT

The Requires

 

by Antoine Jouve