You are here

protected function ViewsDisplayCachingTest::createDemoContent in Search API 8

Creates some test axes.

1 call to ViewsDisplayCachingTest::createDemoContent()
ViewsDisplayCachingTest::setUp in tests/src/Kernel/Views/ViewsDisplayCachingTest.php

File

tests/src/Kernel/Views/ViewsDisplayCachingTest.php, line 231

Class

ViewsDisplayCachingTest
Tests the Search API caching plugins for Views.

Namespace

Drupal\Tests\search_api\Kernel\Views

Code

protected function createDemoContent() {
  foreach ([
    'Glaive',
    'Halberd',
    'Hurlbat',
  ] as $name) {
    EntityTestMulRevChanged::create([
      'name' => $name,
    ])
      ->save();
  }
}