You are here

protected function EmailNotificationsTest::setUp in Search API Saved Searches 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/EmailNotificationsTest.php, line 44

Class

EmailNotificationsTest
Tests the functionality of the "E-mail" notifications plugin.

Namespace

Drupal\Tests\search_api_saved_searches\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('entity_test_mulrev_changed');
  $this
    ->installEntitySchema('search_api_saved_search');
  $this
    ->installConfig([
    'search_api_saved_searches',
    'user',
  ]);

  // Insert the anonymous user into the database.
  User::create([
    'uid' => 0,
    'name' => '',
  ])
    ->save();
  $this->plugin = new Email([], 'email', []);
}