| 1 | <?php |
||
| 14 | class ElasticsearchDataProviderBundleTest extends \PHPUnit_Framework_TestCase |
||
| 15 | { |
||
| 16 | public function testConstruct() |
||
| 17 | { |
||
| 18 | $this->assertInstanceOf( |
||
| 19 | ElasticsearchDataProviderBundle::class, |
||
| 20 | new ElasticsearchDataProviderBundle() |
||
| 21 | ); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function testBuildAddCompilerPass() |
||
| 25 | { |
||
| 26 | $container = $this->getMock(ContainerBuilder::class); |
||
| 27 | $container |
||
| 28 | ->expects($this->once()) |
||
| 29 | ->method('addCompilerPass') |
||
| 30 | ->with($this->isInstanceOf(DataProviderCompilerPass::class)) |
||
| 31 | ; |
||
| 32 | |||
| 33 | $bundle = new ElasticsearchDataProviderBundle(); |
||
| 34 | $bundle->build($container); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |