class SearchEntityOperationsCacheabilityTest

Same name and namespace in other branches
  1. 11.x core/modules/search/tests/src/Kernel/SearchEntityOperationsCacheabilityTest.php \Drupal\Tests\search\Kernel\SearchEntityOperationsCacheabilityTest

Tests cacheability added by entity operations.

Attributes

#[Group('search')] #[RunTestsInSeparateProcesses]

Hierarchy

Expanded class hierarchy of SearchEntityOperationsCacheabilityTest

File

core/modules/search/tests/src/Kernel/SearchEntityOperationsCacheabilityTest.php, line 14

Namespace

Drupal\Tests\search\Kernel
View source
class SearchEntityOperationsCacheabilityTest extends EntityOperationsCacheabilityTest {
  
  /**
   * Data provider for testEntityOperationsCacheability().
   */
  public static function providerEntityOperationsCacheability() : iterable {
    yield [
      [
        'user',
        'search',
      ],
      'search_page',
      [
        'plugin' => 'user_search',
        'path' => '/test_user_search',
      ],
      [
        'config:search.page.test',
      ],
      [
        'user.permissions',
      ],
      FALSE,
      TRUE,
    ];
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.