You are here

protected function SearchApiWebTest::insertItem in Search API 7

Helper function for inserting a single test item.

Parameters

array $values: The property values of the test item.

See also

search_api_test_insert_item()

1 call to SearchApiWebTest::insertItem()
SearchApiWebTest::insertItems in ./search_api.test
Inserts some test items into the database, via the test module.

File

./search_api.test, line 159
Contains the SearchApiWebTest and the SearchApiUnitTest classes.

Class

SearchApiWebTest
Class for testing Search API functionality via the UI.

Code

protected function insertItem(array $values) {
  $this
    ->drupalPost('search_api_test/insert', $values, t('Save'));
}