示例#1
0
 public function testResetAllIndexes()
 {
     $this->indexConfigsByName['foo']['index']->expects($this->once())->method('create')->with($this->indexConfigsByName['foo']['config'], true);
     $this->indexConfigsByName['bar']['index']->expects($this->once())->method('create')->with($this->indexConfigsByName['bar']['config'], true);
     $resetter = new Resetter($this->indexConfigsByName);
     $resetter->resetAllIndexes();
 }