You are here

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

File

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

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 testHas() {
  $this
    ->assertTrue($this->indexer
    ->has($this->info['class']['expectID'][0]));
  $this
    ->assertFalse($this->indexer
    ->has(uniqid()));
}