for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Overwatch\UserBundle\Tests\Base;
use Liip\FunctionalTestBundle\Test\WebTestCase;
/**
* DatabaseAwareTestCase
* Extends LiipFunctionalTestBundle's web test case to add custom logic.
* Includes ApiTestHelperTrait.
*/
class DatabaseAwareTestCase extends WebTestCase
{
use ApiTestHelperTrait;
protected $em;
protected $client;
public function setUp()
$this->client = static::createClient();
$this->loadFixtures([
'Overwatch\TestBundle\DataFixtures\ORM\TestGroupFixtures',
'Overwatch\TestBundle\DataFixtures\ORM\TestFixtures',
'Overwatch\ResultBundle\DataFixtures\ORM\TestResultFixtures',
'Overwatch\UserBundle\DataFixtures\ORM\UserFixtures'
]);
$this->em = $this->getContainer()->get('doctrine')->getManager();
}