2013-12-11 23:52:25 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FOS\ElasticaBundle\Tests\Resetter;
|
|
|
|
|
|
|
|
use FOS\ElasticaBundle\FOSElasticaBundle;
|
|
|
|
|
|
|
|
class FOSElasticaBundleTest extends \PHPUnit_Framework_TestCase
|
|
|
|
{
|
|
|
|
public function testCompilerPassesAreRegistered()
|
|
|
|
{
|
|
|
|
$container = $this
|
|
|
|
->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');
|
|
|
|
|
|
|
|
$container
|
2014-06-18 09:13:29 +02:00
|
|
|
->expects($this->atLeastOnce())
|
2013-12-11 23:52:25 +01:00
|
|
|
->method('addCompilerPass')
|
2014-06-18 09:13:29 +02:00
|
|
|
->with($this->isInstanceOf('Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface'));
|
2013-12-11 23:52:25 +01:00
|
|
|
|
|
|
|
$bundle = new FOSElasticaBundle();
|
|
|
|
$bundle->build($container);
|
|
|
|
}
|
|
|
|
}
|