diff --git a/search_api.api.php b/search_api.api.php
index 87e25ce..4c515da 100644
--- a/search_api.api.php
+++ b/search_api.api.php
@@ -78,7 +78,7 @@ function hook_search_api_processor_info_alter(array &$processors) {
  */
 function hook_search_api_data_type_info_alter(array &$data_type_definitions) {
   if (isset($data_type_definitions['text'])) {
-    $data_type_definitions['text'] = t('Parsed text');
+    $data_type_definitions['text']['label'] = t('Parsed text');
   }
 }
 
diff --git a/src/Tests/HooksTest.php b/src/Tests/HooksTest.php
new file mode 100644
index 0000000..c3f3ffe
--- /dev/null
+++ b/src/Tests/HooksTest.php
@@ -0,0 +1,167 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\search_api\Tests\IntegrationTest.
+ */
+
+namespace Drupal\search_api\Tests;
+
+use Drupal\Component\Utility\Unicode;
+use Drupal\Core\Url;
+
+/**
+ * Tests integration of hooks.
+ *
+ * @group search_api
+ */
+class HooksTest extends WebTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = array('node', 'search_api', 'search_api_test_backend', 'search_api_test_views', 'search_api_test_hooks');
+
+  /**
+   * The id of the server.
+   *
+   * @var string
+   */
+  protected $serverId;
+
+  /**
+   * The id of the index.
+   *
+   * @var string
+   */
+  protected $indexId;
+
+  /**
+   * Tests various operations via the Search API's admin UI.
+   */
+  public function testHooks() {
+    $server_add_form = new Url('entity.search_api_server.add_form', array(), array('absolute' => TRUE));
+    $index_add_form = new Url('entity.search_api_index.add_form', array(), array('absolute' => TRUE));
+
+    // Create some nodes.
+    $this->drupalCreateNode(array('type' => 'page'));
+    $this->drupalCreateNode(array('type' => 'page'));
+    $this->drupalCreateNode(array('type' => 'page'));
+
+    // Log in, so we can test all the things.
+    $this->drupalLogin($this->adminUser);
+
+    // Create an index and server to work with.
+    $this->createServer();
+    $this->createIndex();
+
+    // hook_search_api_backend_info_alter was triggered.
+    $this->drupalGet($server_add_form);
+    $this->assertText('Slims return');
+
+    // hook_search_api_datasource_info_alter was triggered.
+    $this->drupalGet($index_add_form);
+    $this->assertText('Distant land');
+
+    // hook_search_api_processor_info_alter was triggered.
+    $this->drupalGet($this->getIndexPath('processors'));
+    $this->assertText('Mystic bounce');
+
+    $this->drupalGet($this->getIndexPath());
+    $this->drupalPostForm(NULL, [], $this->t('Index now'));
+
+    // hook_search_api_index_items_alter was triggered.
+    $this->assertText('There are 2 items indexed on the server for this index.');
+    $this->assertText('Successfully indexed 3 items.');
+    $this->assertText('Stormy');
+
+    // hook_search_api_items_indexed was triggered.
+    $this->assertText('Please set me at ease');
+
+    // hook_search_api_index_reindex was triggered.
+    $this->drupalGet($this->getIndexPath('reindex'));
+    $this->drupalPostForm(NULL, [], $this->t('Confirm'));
+    $this->assertText('Montara');
+
+    // hook_search_api_data_type_info_alter was triggered.
+    $this->drupalGet($this->getIndexPath('fields'));
+    $this->assertText('Peace/Dolphin dance');
+    // The implementation of hook_search_api_field_type_mapping_alter has
+    // removed all dates, so we can't see any timestamp anymore in the page.
+    $this->assertNoText('timestamp');
+
+    $this->drupalGet('search-api-test-fulltext');
+    // hook_search_api_query_alter was triggered.
+    $this->assertText('Funky blue note');
+    // hook_search_api_results_alter was triggered.
+    $this->assertText('Stepping into tomorrow');
+    // hook_search_api_views_query_alter was triggered.
+    $this->assertText('Andrew hill break');
+  }
+
+  /**
+   * Creates a search server.
+   */
+  protected function createServer() {
+    $this->serverId = Unicode::strtolower($this->randomMachineName());
+    $server_add_form = new Url('entity.search_api_server.add_form', array(), array('absolute' => TRUE));
+
+    $this->drupalGet($server_add_form);
+
+    $edit = array(
+      'name' => 'Search API test server',
+      'id' => $this->serverId,
+      'status' => 1,
+      'description' => 'A server used for testing.',
+      'backend' => 'search_api_test_backend',
+    );
+
+    $this->drupalPostForm(NULL, $edit, $this->t('Save'));
+
+    $this->assertText($this->t('The server was successfully saved.'));
+    $this->assertUrl('admin/config/search/search-api/server/' . $this->serverId, array(), 'Correct redirect to server page.');
+  }
+
+  /**
+   * Creates an index.
+   */
+  protected function createIndex() {
+    $index_add_form = new Url('entity.search_api_index.add_form', array(), array('absolute' => TRUE));
+
+    $this->drupalGet($index_add_form);
+
+    $this->indexId = 'test_index';
+
+    $edit = array(
+      'name' => 'Search API test index',
+      'id' => $this->indexId,
+      'status' => 1,
+      'description' => 'An index used for testing.',
+      'server' => $this->serverId,
+      'datasources[]' => array('entity:node'),
+    );
+
+    $this->drupalPostForm(NULL, $edit, $this->t('Save'));
+
+    $this->assertText($this->t('The index was successfully saved.'));
+    $this->assertUrl($this->getIndexPath(), array(), 'Correct redirect to index page.');
+  }
+
+  /**
+   * Returns the system path for the test index.
+   *
+   * @param string|null $tab
+   *   (optional) If set, the path suffix for a specific index tab.
+   *
+   * @return string
+   *   A system path.
+   */
+  protected function getIndexPath($tab = NULL) {
+    $path = 'admin/config/search/search-api/index/' . $this->indexId;
+    if ($tab) {
+      $path .= "/$tab";
+    }
+    return $path;
+  }
+
+}
diff --git a/tests/search_api_test_hooks/search_api_test_hooks.info.yml b/tests/search_api_test_hooks/search_api_test_hooks.info.yml
new file mode 100644
index 0000000..55f6462
--- /dev/null
+++ b/tests/search_api_test_hooks/search_api_test_hooks.info.yml
@@ -0,0 +1,8 @@
+name: 'Search API Hooks Test'
+type: module
+description: 'Support module for Search API tests, tests all the hooks.'
+package: Testing
+dependencies:
+  - search_api:search_api
+core: 8.x
+hidden: true
diff --git a/tests/search_api_test_hooks/search_api_test_hooks.module b/tests/search_api_test_hooks/search_api_test_hooks.module
new file mode 100644
index 0000000..44a830f
--- /dev/null
+++ b/tests/search_api_test_hooks/search_api_test_hooks.module
@@ -0,0 +1,87 @@
+<?php
+
+/**
+ * @file
+ * Tests all the hooks defined by the Search API module.
+ */
+
+/**
+ * Implements hook_search_api_backend_info_alter.
+ */
+function search_api_test_hooks_search_api_backend_info_alter(array &$backend_info) {
+  $backend_info['search_api_test_backend']['label'] = 'Slims return';
+}
+
+/**
+ * Implements hook_search_api_datasource_info_alter.
+ */
+function search_api_test_hooks_search_api_datasource_info_alter(array &$infos) {
+  $infos['entity:node']['label'] = 'Distant land';
+}
+
+/**
+ * Implements hook_search_api_processor_info_alter.
+ */
+function search_api_test_hooks_search_api_processor_info_alter(array &$processors) {
+  $processors['rendered_item']['label'] = 'Mystic bounce';
+}
+
+/**
+ * Implements hook_search_api_index_items_alter.
+ */
+function search_api_test_hooks_search_api_index_items_alter(\Drupal\search_api\IndexInterface $index, array &$items) {
+  unset($items['entity:node/1:en']);
+  drupal_set_message('Stormy');
+}
+
+/**
+ * Implements hook_search_api_items_indexed.
+ */
+function search_api_test_hooks_search_api_items_indexed(\Drupal\search_api\IndexInterface $index, array $item_ids) {
+  drupal_set_message('Please set me at ease');
+}
+
+/**
+ * Implements hook_search_api_query_alter.
+ */
+function search_api_test_hooks_search_api_query_alter(\Drupal\search_api\Query\QueryInterface &$query) {
+  drupal_set_message('Funky blue note');
+}
+
+/**
+ * Implements hook_search_api_results_alter.
+ */
+function search_api_test_hooks_search_api_results_alter(\Drupal\search_api\Query\ResultSetInterface &$results) {
+  drupal_set_message('Stepping into tomorrow');
+}
+
+/**
+ * Implements hook_search_api_views_query_alter.
+ */
+function search_api_test_hooks_search_api_views_query_alter(\Drupal\views\ViewExecutable $view, \Drupal\search_api\Query\QueryInterface &$query) {
+  drupal_set_message('Andrew hill break');
+}
+
+/**
+ * Implements hook_search_api_index_reindex.
+ */
+function search_api_test_hooks_search_api_index_reindex(\Drupal\search_api\IndexInterface $index, $clear = FALSE) {
+  drupal_set_message('Montara');
+}
+
+/**
+ * Implements hook_search_api_data_type_info_alter.
+ */
+function search_api_test_hooks_search_api_data_type_info_alter(array &$data_type_definitions) {
+  if (isset($data_type_definitions['text'])) {
+    $data_type_definitions['text']['label'] = 'Peace/Dolphin dance';
+  }
+}
+
+/**
+ * Implements hook_search_api_field_type_mapping_alter.
+ */
+function search_api_test_hooks_search_api_field_type_mapping_alter(array &$mapping) {
+  $mapping['datetime_iso8601'] = NULL;
+  $mapping['timestamp'] = NULL;
+}
