Skip to content
Snippets Groups Projects
Commit 1b263e79 authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3257446 by phenaproxima: Remove deprecated PHPUnit assertions

parent 963590ce
No related branches found
No related tags found
1 merge request!159Issue #3257446: Remove deprecated PHPUnit assertions
......@@ -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 (__NAMESPACE__ === 'Drupal\Tests\automatic_updates\Build') {
$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');
......
......@@ -164,7 +164,7 @@ class StagedDatabaseUpdateValidatorTest extends AutomaticUpdatesKernelTestBase {
// The file we're creating shouldn't already exist in the staging area
// unless it's a file we actually ship, which is a scenario covered by
// ::testFileChanged().
$this->assertFileNotExists($file);
$this->assertFileDoesNotExist($file);
file_put_contents($file, $this->randomString());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment