/**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->installSchema('system', 'key_value_expire');
     // The server tasks manager is needed when removing a server.
     $mock = $this->getMock('Drupal\\search_api\\Task\\ServerTaskManagerInterface');
     $this->container->set('search_api.server_task_manager', $mock);
     // Create the index object, but don't save it yet since we want to change
     // its settings anyways in every test.
     $this->index = Index::create(array('id' => 'test_index', 'name' => 'Test index', 'tracker_settings' => array('default' => array('plugin_id' => 'default', 'settings' => array())), 'datasource_settings' => array('entity:user' => array('plugin_id' => 'entity:user', 'settings' => array()))));
     // Use a search server as the dependency, since we have that available
     // anyways. The entity type should not matter at all, though.
     $this->dependency = Server::create(array('id' => 'dependency', 'name' => 'Test dependency', 'backend' => 'search_api_test_backend'));
     $this->dependency->save();
 }