You are here

public function HookFormAlterTest::testHookFormAlter in Drupal 7 to 8/9 Module Upgrader 8

File

tests/src/Unit/Plugin/DMU/Analyzer/HookFormAlterTest.php, line 45

Class

HookFormAlterTest
@group DMU.Analyzer @covers \Drupal\drupalmoduleupgrader\Plugin\DMU\Analyzer\HookFormAlter

Namespace

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

Code

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