Skip to content
Snippets Groups Projects

Issue #3257446: Remove deprecated PHPUnit assertions

1 file
+ 9
6
Compare changes
  • Side-by-side
  • Inline
@@ -32,14 +32,17 @@ abstract class UpdateTestBase extends TemplateProjectSiteTestBase {
protected function createTestProject(string $template): void {
parent::createTestProject($template);
// BEGIN: DELETE FROM CORE MERGE REQUEST
// Install Automatic Updates into the test project and ensure it wasn't
// symlinked.
$dir = 'project';
$this->runComposer('composer config repo.automatic_updates path ' . __DIR__ . '/../../..', $dir);
$this->runComposer('composer require --no-update "drupal/automatic_updates:@dev"', $dir);
$output = $this->runComposer('COMPOSER_MIRROR_PATH_REPOS=1 composer update --with-all-dependencies', $dir);
$this->assertStringNotContainsString('Symlinking', $output);
if (strpos(__NAMESPACE__, 'Drupal\\automatic_updates\\') === 0) {
$dir = 'project';
$this->runComposer('composer config repo.automatic_updates path ' . __DIR__ . '/../../..', $dir);
$this->runComposer('composer require --no-update "drupal/automatic_updates:@dev"', $dir);
$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,
// for easier debugging, always display errors in their dubious glory.
$this->installQuickStart('minimal');
Loading