Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Use LiipTestFixturesBundle #70

Merged
merged 1 commit into from
Apr 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"require-dev": {
"symfony/monolog-bundle": "~3.1",
"doctrine/doctrine-fixtures-bundle": "^3.0",
"liip/functional-test-bundle": "~2.0@alpha",
"liip/functional-test-bundle": "~3.0@alpha",
"liip/test-fixtures-bundle": "~0.1@alpha",
"phpunit/phpunit": "~6.5.6|~7.0",
"behat/behat": "~3.2",
"behat/symfony2-extension": "^2.1",
Expand Down
1 change: 1 addition & 0 deletions tests/App/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function registerBundles()
new \AlexisLefebvre\Bundle\AsyncTweetsBundle\AsyncTweetsBundle(),
new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
new \Liip\FunctionalTestBundle\LiipFunctionalTestBundle(),
new \Liip\TestFixturesBundle\LiipTestFixturesBundle(),
];

return $bundles;
Expand Down
2 changes: 1 addition & 1 deletion tests/App/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ monolog:
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug

liip_functional_test:
liip_test_fixtures:
cache_db:
sqlite: liip_functional_test.services_database_backup.sqlite

Expand Down
3 changes: 3 additions & 0 deletions tests/Command/StatusesHomeTimelineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
namespace Acme\Command;

use Doctrine\Common\Annotations\Annotation\IgnoreAnnotation;
use Liip\TestFixturesBundle\Test\FixturesTrait;
use Symfony\Component\Console\Tester\CommandTester;

/**
* @IgnoreAnnotation("requires")
*/
class StatusesHomeTimelineTest extends StatusesBase
{
use FixturesTrait;

/** @var CommandTester $commandTester */
public $commandTester;

Expand Down
3 changes: 3 additions & 0 deletions tests/Command/StatusesReadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
namespace Acme\Command;

use AlexisLefebvre\Bundle\AsyncTweetsBundle\Command\StatusesReadCommand;
use Liip\TestFixturesBundle\Test\FixturesTrait;
use Symfony\Component\Console\Tester\CommandTester;

class StatusesReadTest extends StatusesBase
{
use FixturesTrait;

/** @var CommandTester $commandTester */
public $commandTester;

Expand Down
3 changes: 3 additions & 0 deletions tests/Controller/DefaultControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
namespace Acme\Controller;

use Liip\FunctionalTestBundle\Test\WebTestCase;
use Liip\TestFixturesBundle\Test\FixturesTrait;

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 @@ -4,9 +4,12 @@

use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\Tweet;
use Liip\FunctionalTestBundle\Test\WebTestCase;
use Liip\TestFixturesBundle\Test\FixturesTrait;

class TweetRepositoryTest extends WebTestCase
{
use FixturesTrait;

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