$this->
assertSession()->
pageTextContains('System no module version dependency test'
);
$this->
assertSession()->
pageTextContains('System no module version test'
);
// Ensure the modules can actually be installed.
$edit['modules[system_no_module_version_test][enable]'
] = 'system_no_module_version_test';
$edit['modules[system_no_module_version_dependency_test][enable]'
] = 'system_no_module_version_dependency_test';
$this->
drupalGet('admin/modules'
);
$this->
submitForm($edit, 'Install'
);
$this->
assertSession()->
pageTextContains('2 modules have been enabled: System no module version dependency test, System no module version test.'
);
// Ensure status report is working.
$this->
drupalLogin($this->
createUser(['administer site configuration'
]));
$this->
drupalGet('admin/reports/status'
);
$this->
assertSession()->
statusCodeEquals(200
);
} /**
* Tests failing PHP version requirements.
*/
public function testIncompatiblePhpVersionDependency() { $this->
drupalGet('admin/modules'
);
$this->
assertSession()->
pageTextContains('This module requires PHP version 6502.* and is incompatible with PHP version ' .
phpversion() . '.'
);
$this->
assertSession()->
fieldDisabled('modules[system_incompatible_php_version_test][enable]'
);
}