public function Tests::convertAjax in Drupal 7 to 8/9 Module Upgrader 8
Converts a single Ajax test.
Parameters
\Pharborist\Objects\ClassNode $test:
File
- src/
Plugin/ DMU/ Converter/ Tests.php, line 195
Class
- Tests
- Plugin annotation @Converter( id = "tests", description = @Translation("Modifies test classes.") )
Namespace
Drupal\drupalmoduleupgrader\Plugin\DMU\ConverterCode
public function convertAjax(ClassNode $test) {
$test
->setExtends('\\Drupal\\system\\Tests\\Ajax\\AjaxTestBase');
$this
->setModules($test);
$this
->move($test);
}