public function testCreateWithEmptyFields()
 {
     $index = 'index_name';
     $expectedTable = 'index_name_scope3_scope5_scope1';
     $dimensions = ['index_name_scope_3' => $this->createDimensionMock('scope', 3), 'index_name_scope_5' => $this->createDimensionMock('scope', 5), 'index_name_scope_1' => $this->createDimensionMock('scope', 1)];
     $position = 0;
     $this->indexScopeResolver->expects($this->once())->method('resolve')->with($index, $dimensions)->willReturn($expectedTable);
     $this->mockFulltextTable($position, $expectedTable, true);
     $this->target->create($index, [], $dimensions);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function cleanIndex($dimensions)
 {
     $this->indexStructure->delete($this->getIndexName(), $dimensions);
     $this->indexStructure->create($this->getIndexName(), $dimensions);
 }