You are here

public function HookUninstalltest::test in Drupal 7 to 8/9 Module Upgrader 8

File

tests/src/Unit/Plugin/DMU/Analyzer/HookUninstallTest.php, line 39

Class

HookUninstalltest
@group DMU.Analyzer @covers \Drupal\drupalmoduleupgrader\Plugin\DMU\Analyzer\HookUninstall

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\Analyzer

Code

public function test() {
  $issues = $this->analyzer
    ->analyze($this->target);
  $this
    ->assertInternalType('array', $issues);
  $this
    ->assertNotEmpty($issues);
  $this
    ->assertIssueDefaults($issues[0]);
  $this
    ->assertCount(1, $issues[0]
    ->getViolations());
}