public function GenericTest::setUp in Drupal 7 to 8/9 Module Upgrader 8
Mocks an entire module, called foo, in a virtual file system.
Overrides TestBase::setUp
File
- tests/
src/ Unit/ Plugin/ DMU/ Rewriter/ GenericTest.php, line 20
Class
- GenericTest
- @group DMU.Rewriter @covers \Drupal\drupalmoduleupgrader\Plugin\DMU\Rewriter\Generic
Namespace
Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\RewriterCode
public function setUp() {
parent::setUp();
$definition = [
'properties' => [
'nid' => [
'get' => 'id',
],
'title' => [
'get' => 'getTitle',
'set' => 'setTitle',
],
],
];
$this->plugin = $this
->getPlugin([], $definition);
}