public function IndexerTestBase::testGet in Drupal 7 to 8/9 Module Upgrader 8
File
- tests/
src/ Unit/ Plugin/ DMU/ Indexer/ IndexerTestBase.php, line 29
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 testGet() {
$node = $this->indexer
->get($this->info['class']['expectID'][0]);
$this
->assertFalse($node
->isEmpty());
$this
->assertInstanceOf($this->info['class']['expectType'][0], $node);
}