You are here

public function Tests::convertWeb in Drupal 7 to 8/9 Module Upgrader 8

Converts a single web test.

Parameters

\Pharborist\Objects\ClassNode $test:

File

src/Plugin/DMU/Converter/Tests.php, line 69

Class

Tests
Plugin annotation @Converter( id = "tests", description = @Translation("Modifies test classes.") )

Namespace

Drupal\drupalmoduleupgrader\Plugin\DMU\Converter

Code

public function convertWeb(ClassNode $test) {
  $test
    ->setExtends('\\Drupal\\simpletest\\WebTestBase');
  $this
    ->convertInfo($test);
  $this
    ->setModules($test);
  $this
    ->setProfile($test);
  $this
    ->move($test);
}