/**
  * Tests whether deleting an index works correctly.
  *
  * @param \Drupal\search_api\IndexInterface $index
  *   The index used for the test.
  */
 public function indexDelete(IndexInterface $index)
 {
     $this->storage->delete(array($index));
     $loaded_index = $this->storage->load($index->id());
     $this->assertNull($loaded_index);
 }
Exemplo n.º 2
0
 /**
  * Tests whether deleting a server works correctly.
  *
  * @param \Drupal\search_api\ServerInterface $server
  *   The server used for this test.
  */
 public function serverDelete(ServerInterface $server)
 {
     $this->storage->delete(array($server));
     $loaded_server = $this->storage->load($server->id());
     $this->assertNull($loaded_server);
 }