You are here

public function ModifiedFilesTest::testContribModified in Automatic Updates 8

@covers ::getModifiedFiles @dataProvider contribProjectsProvider

File

tests/src/Build/ModifiedFilesTest.php, line 52

Class

ModifiedFilesTest
@coversDefaultClass \Drupal\automatic_updates\Services\ModifiedFiles

Namespace

Drupal\Tests\automatic_updates\Build

Code

public function testContribModified($project, $project_type, $version, array $modifications = []) {
  $this
    ->markTestSkipped('Contrib updates are not currently supported');
  $this
    ->copyCodebase();

  // Download the project.
  $this->symfonyFileSystem
    ->mkdir($this
    ->getWorkspaceDirectory() . "/{$project_type}s/contrib/{$project}");
  $this
    ->executeCommand("curl -fsSL https://ftp.drupal.org/files/projects/{$project}-{$version}.tar.gz | tar xvz -C {$project_type}s/contrib/{$project} --strip 1");
  $this
    ->assertCommandSuccessful();

  // Assert modifications.
  $this
    ->assertModifications($project_type, $project, $modifications);
}