TestingProfileInstallTest.php in Drupal 8
File
core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php
View source
<?php
namespace Drupal\FunctionalTests\Installer;
use Drupal\Tests\BrowserTestBase;
class TestingProfileInstallTest extends BrowserTestBase {
protected $profile = 'testing';
protected $defaultTheme = 'stark';
public function testUpdateModuleInstall() {
$this
->assertTrue(\Drupal::moduleHandler()
->moduleExists('update') && \Drupal::moduleHandler()
->moduleExists('file') && \Drupal::moduleHandler()
->moduleExists('field'), 'The Update module and its dependencies are installed.');
}
protected function installParameters() {
$params = parent::installParameters();
$params['forms']['install_configure_form']['enable_update_status_module'] = TRUE;
return $params;
}
}