public function IssueTest::testFixes in Drupal 7 to 8/9 Module Upgrader 8
File
- tests/
src/ Unit/ IssueTest.php, line 83
Class
- IssueTest
- @group DMU
Namespace
Drupal\Tests\drupalmoduleupgrader\UnitCode
public function testFixes() {
$this->issue
->addFix('foo');
$this->issue
->addFix('baz', [
'bar' => 'wambooli',
]);
$fixes = $this->issue
->getFixes();
$this
->assertInternalType('array', $fixes);
$this
->assertCount(2, $fixes);
$this
->assertEquals([
'_plugin_id' => 'foo',
], $fixes[0]);
$this
->assertEquals([
'_plugin_id' => 'baz',
'bar' => 'wambooli',
], $fixes[1]);
}