You are here

protected function UserCrudReactionTest::reloadSavedSearches in Search API Saved Searches 8

Reloads the saved searches in $this->savedSearches.

6 calls to UserCrudReactionTest::reloadSavedSearches()
UserCrudReactionTest::testIndexDelete in tests/src/Kernel/UserCrudReactionTest.php
Verifies correct reaction to the deletion of a search index.
UserCrudReactionTest::testUserActivate in tests/src/Kernel/UserCrudReactionTest.php
Verifies correct reaction to the activation of a user account.
UserCrudReactionTest::testUserDeactivate in tests/src/Kernel/UserCrudReactionTest.php
Verifies correct reaction to the deactivation of a user account.
UserCrudReactionTest::testUserDelete in tests/src/Kernel/UserCrudReactionTest.php
Verifies correct reaction to the deletion of a user account.
UserCrudReactionTest::testUserInsert in tests/src/Kernel/UserCrudReactionTest.php
Verifies correct reaction to the creation of a new user.

... See full list

File

tests/src/Kernel/UserCrudReactionTest.php, line 272

Class

UserCrudReactionTest
Verifies that the module reacts correctly to user CRUD operations.

Namespace

Drupal\Tests\search_api_saved_searches\Kernel

Code

protected function reloadSavedSearches() {
  foreach ($this->savedSearches as $i => $search) {
    $this->savedSearches[$i] = SavedSearch::load($search
      ->id());
  }
}