SearchEntityOperationsCacheabilityTest.php

Same filename and directory in other branches
  1. 11.x core/modules/search/tests/src/Kernel/SearchEntityOperationsCacheabilityTest.php

Namespace

Drupal\Tests\search\Kernel

File

core/modules/search/tests/src/Kernel/SearchEntityOperationsCacheabilityTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\search\Kernel;

use Drupal\Tests\system\Kernel\Entity\EntityOperationsCacheabilityTest;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Tests cacheability added by entity operations.
 */
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,
    ];
  }

}

Classes

Title Deprecated Summary
SearchEntityOperationsCacheabilityTest Tests cacheability added by entity operations.

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