public function UserCrudReactionTest::testUserDelete in Search API Saved Searches 8
Verifies correct reaction to the deletion of a user account.
See also
search_api_saved_searches_user_delete()
File
- tests/src/ Kernel/ UserCrudReactionTest.php, line 188 
Class
- UserCrudReactionTest
- Verifies that the module reacts correctly to user CRUD operations.
Namespace
Drupal\Tests\search_api_saved_searches\KernelCode
public function testUserDelete() {
  $this->testUser
    ->delete();
  $this
    ->reloadSavedSearches();
  $search = array_shift($this->savedSearches);
  $this
    ->assertEmpty($search);
  // Verify that other alerts were unaffected.
  $this
    ->reloadSavedSearches();
  foreach ($this->savedSearches as $search) {
    $this
      ->assertNotEmpty($search);
  }
}