$this->assertFileExists($this->tmpDir . '/sites/default/default.settings.php');
}
- /**
- * Tests version specific files.
- */
- public function testFetchVersionSpecific() {
- $fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version}', ['.eslintrc', '.eslintrc.json']);
-
- $this->setExpectedException(TransportException::class);
- $fetcher->fetch('8.2.x', $this->tmpDir);
-
- $this->assertFileExists($this->tmpDir . '/.eslintrc');
- $this->assertFileNotExists($this->tmpDir . '/.eslintrc.json');
-
- // Remove downloaded files to retest with 8.3.x.
- @unlink($this->tmpDir . '/.eslintrc');
-
- $this->setExpectedException(TransportException::class);
- $fetcher->fetch('8.3.x', $this->tmpDir);
-
- $this->assertFileExists($this->tmpDir . '/.eslintrc.json');
- $this->assertFileNotExists($this->tmpDir . '/.eslintrc');
- }
-
public function testInitialFetch() {
$fetcher = new InitialFileFetcher(new RemoteFilesystem(new NullIO()), 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version}', ['sites/default/default.settings.php' => 'sites/default/settings.php']);
$fetcher->fetch('8.1.1', $this->tmpDir);