| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function testIndexableCallback() |
||
| 36 | { |
||
| 37 | static::bootKernel(['test_case' => 'ORM']); |
||
| 38 | |||
| 39 | /** @var \FOS\ElasticaBundle\Provider\Indexable $in */ |
||
| 40 | $in = static::$kernel->getContainer()->get('fos_elastica.indexable'); |
||
| 41 | |||
| 42 | $this->assertTrue($in->isObjectIndexable('index', 'type', new TypeObj())); |
||
| 43 | $this->assertTrue($in->isObjectIndexable('index', 'type2', new TypeObj())); |
||
| 44 | $this->assertFalse($in->isObjectIndexable('index', 'type3', new TypeObj())); |
||
| 45 | $this->assertFalse($in->isObjectIndexable('index', 'type4', new TypeObj())); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |