You are here

public function SavedSearchCrudTest::preSaveDataProvider in Search API Saved Searches 8

Provides data for testPreSave().

Return value

array Arrays of call arguments for testPreSave().

See also

\Drupal\Tests\search_api_saved_searches\Kernel\SavedSearchCrudTest::testPreSave()

File

tests/src/Kernel/SavedSearchCrudTest.php, line 209

Class

SavedSearchCrudTest
Tests CRUD functionality for saved searches.

Namespace

Drupal\Tests\search_api_saved_searches\Kernel

Code

public function preSaveDataProvider() {
  return [
    'with notifications, index_id set' => [
      10,
      1234567890,
      'foobar',
      1234567890 + 10,
      'foobar',
    ],
    'with instant notifications' => [
      0,
      1234567890,
      'foobar',
      1234567890,
      'foobar',
    ],
    'without notifications, index_id not set' => [
      -1,
      1234567890,
      NULL,
      NULL,
      'test',
    ],
  ];
}