Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drupal-composer / drupal-scaffold / tests / FetcherTest.php
index 39b3e730c441ab2ae04dc198c6cd45452685a077..0aa59727d10ffff7ee1b8f2ca16f146d262da7a2 100644 (file)
@@ -69,28 +69,6 @@ class FetcherTest extends \PHPUnit_Framework_TestCase {
     $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);