Skip to content

Commit

Permalink
Load fixtures by using a Trait
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre committed Mar 17, 2019
1 parent 86fb108 commit b24dcdd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Command/StatusesBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Acme\Command;

use AlexisLefebvre\FixturesBundle\Test\FixturesTrait;
use AlexisLefebvre\TestBundle\Test\WebTestCase;
use Symfony\Bundle\FrameworkBundle\Console\Application;

Expand All @@ -10,6 +11,8 @@
*/
class StatusesBase extends WebTestCase
{
use FixturesTrait;

public $application;

public function setUp()
Expand Down
3 changes: 3 additions & 0 deletions tests/Controller/DefaultControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

namespace Acme\Controller;

use AlexisLefebvre\FixturesBundle\Test\FixturesTrait;
use AlexisLefebvre\TestBundle\Test\WebTestCase;

class DefaultControllerTest extends WebTestCase
{
use FixturesTrait;

private $client = null;

public function setUp()
Expand Down
3 changes: 3 additions & 0 deletions tests/Entity/TweetRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
namespace Acme\Entity;

use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\Tweet;
use AlexisLefebvre\FixturesBundle\Test\FixturesTrait;
use AlexisLefebvre\TestBundle\Test\WebTestCase;

class TweetRepositoryTest extends WebTestCase
{
use FixturesTrait;

/**
* @var \Doctrine\ORM\EntityManager
*/
Expand Down

0 comments on commit b24dcdd

Please sign in to comment.