/** * Tests whether loading a server works correctly. * * @param \Drupal\search_api\ServerInterface $server * The server used for this test. */ public function serverLoad(ServerInterface $server) { $loaded_server = $this->storage->load($server->id()); $this->assertSame($server->label(), $loaded_server->label()); $this->storage->resetCache(); $loaded_server = $this->storage->load($server->id()); $this->assertSame($server->label(), $loaded_server->label()); }