public function testExecuteHook()
 {
     $expected = ['foo/baz' => ['title' => 'It worked!']];
     $this->indexer->method('has')->with('hook_menu')->willReturn(TRUE);
     $this->indexer->method('hasExecutable')->with('hook_menu')->willReturn(TRUE);
     $this->indexer->method('execute')->with('hook_menu')->willReturn($expected);
     $actual = $this->target->executeHook('menu');
     $this->assertInternalType('array', $actual);
     $this->assertSame($expected, $actual);
 }
 /**
  * @depends testHas
  */
 public function testDelete()
 {
     $id = $this->info['class']['expectID'][0];
     $this->indexer->delete($id);
     $this->assertFalse($this->indexer->has($id));
 }