You are here

protected function LinkitTestCase::autocompleteCall in Linkit 7.3

Helper method to process the autocomplete call.

11 calls to LinkitTestCase::autocompleteCall()
LinkitsearchPluginNodeTestCase::testBasicResults in test/linkit_search_plugin_node.test
Test that we get results back which is valid.
LinkitsearchPluginNodeTestCase::testBundleFilter in test/linkit_search_plugin_node.test
Test bundle filter.
LinkitsearchPluginNodeTestCase::testDescription in test/linkit_search_plugin_node.test
Test result description.
LinkitsearchPluginNodeTestCase::testGroupbyBundle in test/linkit_search_plugin_node.test
Test group by bundle.
LinkitsearchPluginNodeTestCase::testUnpublishedItems in test/linkit_search_plugin_node.test
Test how node states are handled.

... See full list

File

test/linkit.test, line 92
Tests for Linkit module.

Class

LinkitTestCase

Code

protected function autocompleteCall() {

  // Call the autocomplete.
  $path = 'linkit/autocomplete/' . $this->_profile->name;
  $response = $this
    ->drupalGetAJAX($path, array(
    'query' => array(
      LINKIT_BAC_QUERY_KEY => $this->search_string,
    ),
  ));
  $this
    ->assertResponse(200);
  $this
    ->assertNotNull($response, 'The JSON respone is seems to be ok.');
  return $response;
}