You are here

public function DBTest::setUp in Drupal 7 to 8/9 Module Upgrader 8

Same name in this branch
  1. 8 tests/src/Unit/Plugin/DMU/Analyzer/DBTest.php \Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\Analyzer\DBTest::setUp()
  2. 8 tests/src/Unit/Plugin/DMU/Converter/Functions/DBTest.php \Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\Converter\Functions\DBTest::setUp()

Mocks an entire module, called foo, in a virtual file system.

Overrides FunctionCallModifierTestBase::setUp

File

tests/src/Unit/Plugin/DMU/Converter/Functions/DBTest.php, line 16

Class

DBTest
@group DMU.Converter.Functions @covers \Drupal\drupalmoduleupgrader\Plugin\DMU\Converter\Functions\DB

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\Converter\Functions

Code

public function setUp() {
  parent::setUp();
  $this->plugin = $this
    ->getPlugin([], [
    'function' => 'db_select',
  ]);
}