You are here

public function IndexerTestBase::testClear in Drupal 7 to 8/9 Module Upgrader 8

File

tests/src/Unit/Plugin/DMU/Indexer/IndexerTestBase.php, line 19

Class

IndexerTestBase
Base class for tests of DMU's indexer plugins. Because the indexers' behavior is so standard, this class reflects that by implementing a lot of standard assertions.

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\Indexer

Code

public function testClear() {
  $this->indexer
    ->clear();
  $this
    ->assertCount(0, $this->indexer
    ->getAll());
}