You are here

public function TargetTest::testExecuteUnimplementedHook in Drupal 7 to 8/9 Module Upgrader 8

@expectedException \InvalidArgumentException

File

tests/src/Unit/TargetTest.php, line 92

Class

TargetTest
@group DMU

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit

Code

public function testExecuteUnimplementedHook() {
  $this->indexer
    ->method('has')
    ->with('hook_menu')
    ->willReturn(FALSE);
  $this->target
    ->executeHook('menu');
}