Skip to content
Snippets Groups Projects

Issue #3257446: Remove deprecated PHPUnit assertions

Files
2
@@ -32,14 +32,17 @@ abstract class UpdateTestBase extends TemplateProjectSiteTestBase {
@@ -32,14 +32,17 @@ abstract class UpdateTestBase extends TemplateProjectSiteTestBase {
protected function createTestProject(string $template): void {
protected function createTestProject(string $template): void {
parent::createTestProject($template);
parent::createTestProject($template);
 
// BEGIN: DELETE FROM CORE MERGE REQUEST
// Install Automatic Updates into the test project and ensure it wasn't
// Install Automatic Updates into the test project and ensure it wasn't
// symlinked.
// symlinked.
$dir = 'project';
if (__NAMESPACE__ === 'Drupal\Tests\automatic_updates\Build') {
$this->runComposer('composer config repo.automatic_updates path ' . __DIR__ . '/../../..', $dir);
$dir = 'project';
$this->runComposer('composer require --no-update "drupal/automatic_updates:@dev"', $dir);
$this->runComposer('composer config repo.automatic_updates path ' . __DIR__ . '/../../..', $dir);
$output = $this->runComposer('COMPOSER_MIRROR_PATH_REPOS=1 composer update --with-all-dependencies', $dir);
$this->runComposer('composer require --no-update "drupal/automatic_updates:@dev"', $dir);
$this->assertStringNotContainsString('Symlinking', $output);
$output = $this->runComposer('COMPOSER_MIRROR_PATH_REPOS=1 composer update --with-all-dependencies', $dir);
$this->assertStringNotContainsString('Symlinking', $output);
 
}
 
// END: DELETE FROM CORE MERGE REQUEST
// Install Drupal. Always allow test modules to be installed in the UI and,
// Install Drupal. Always allow test modules to be installed in the UI and,
// for easier debugging, always display errors in their dubious glory.
// for easier debugging, always display errors in their dubious glory.
$this->installQuickStart('minimal');
$this->installQuickStart('minimal');
Loading