public function HookFormAlterTest::testDerivedFormAlter in Drupal 7 to 8/9 Module Upgrader 8
File
- tests/
src/ Unit/ Plugin/ DMU/ Analyzer/ HookFormAlterTest.php, line 53
Class
- HookFormAlterTest
- @group DMU.Analyzer @covers \Drupal\drupalmoduleupgrader\Plugin\DMU\Analyzer\HookFormAlter
Namespace
Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\AnalyzerCode
public function testDerivedFormAlter() {
$issues = $this->analyzer
->analyze($this->target);
$this
->assertInternalType('array', $issues);
$this
->assertNotEmpty($issues);
$this
->assertIssueDefaults($issues[0]);
$this
->assertCount(2, $issues[0]
->getViolations());
}