for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\GBProd\AlgoliaSpecificationBundle;
use GBProd\AlgoliaSpecificationBundle\AlgoliaSpecificationBundle;
use GBProd\AlgoliaSpecificationBundle\DependencyInjection\Compiler\QueryFactoryPass;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Tests for AlgoliaSpecificationBundle
*
* @author GBProd <[email protected]>
*/
class AlgoliaSpecificationBundleTest extends TestCase
{
public function testConstruction()
$bundle = new AlgoliaSpecificationBundle();
$this->assertInstanceOf(AlgoliaSpecificationBundle::class, $bundle);
$this->assertInstanceOf(Bundle::class, $bundle);
}
public function testBuildAddCompilerPass()
$container = $this->prophesize(ContainerBuilder::class);
$container
->addCompilerPass(new QueryFactoryPass())
->shouldBeCalled()
;
$bundle->build($container->reveal());