for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Tests\Integration;
use Doctrine\Common\DataFixtures\ReferenceRepository;
use Dontdrinkandroot\GitkiBundle\Tests\GitRepositoryTestTrait;
use Liip\TestFixturesBundle\Test\FixturesTrait;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
abstract class BaseIntegrationTest extends WebTestCase
{
use GitRepositoryTestTrait;
use FixturesTrait;
const GIT_REPOSITORY_PATH = '/tmp/gitkirepo/';
protected function setUp()
$this->setUpRepo();
}
public function tearDown(): void
$this->tearDownRepo();
protected function loadKernelAndFixtures(array $classNames = []): ReferenceRepository
self::bootKernel();
$referenceRepository = $this->loadFixtures($classNames)->getReferenceRepository();
return $referenceRepository;
/**
* {@inheritdoc}
*/
protected function getRepositoryTemplatePath()
return realpath(__DIR__ . '/../../vendor/dontdrinkandroot/gitki-bundle/Tests/Data/repo/');
protected function getRepositoryTargetPath()
return self::GIT_REPOSITORY_PATH;