public function IndexerTestBase::testDelete in Drupal 7 to 8/9 Module Upgrader 8
@depends testHas
File
- tests/
src/ Unit/ Plugin/ DMU/ Indexer/ IndexerTestBase.php, line 40
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\IndexerCode
public function testDelete() {
$id = $this->info['class']['expectID'][0];
$this->indexer
->delete($id);
$this
->assertFalse($this->indexer
->has($id));
}