@@ -63,7 +63,7 @@ protected function ensureDirectoryExistsAndClear($directory) {
63
63
}
64
64
65
65
public function testFetch () {
66
- $ fetcher = new FileFetcher (new RemoteFilesystem (new NullIO ()), 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version} ' , ['.htaccess ' , 'sites/default/default.settings.php ' ]);
66
+ $ fetcher = new FileFetcher (new RemoteFilesystem (new NullIO ()), 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version} ' , ['.htaccess ' , 'sites/default/default.settings.php ' ], new NullIO () );
67
67
$ fetcher ->fetch ('8.1.1 ' , $ this ->tmpDir );
68
68
$ this ->assertFileExists ($ this ->tmpDir . '/.htaccess ' );
69
69
$ this ->assertFileExists ($ this ->tmpDir . '/sites/default/default.settings.php ' );
@@ -73,7 +73,7 @@ public function testFetch() {
73
73
* Tests version specific files.
74
74
*/
75
75
public function testFetchVersionSpecific () {
76
- $ fetcher = new FileFetcher (new RemoteFilesystem (new NullIO ()), 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version} ' , ['.eslintrc ' , '.eslintrc.json ' ]);
76
+ $ fetcher = new FileFetcher (new RemoteFilesystem (new NullIO ()), 'http://cgit.drupalcode.org/drupal/plain/{path}?h={version} ' , ['.eslintrc ' , '.eslintrc.json ' ], new NullIO () );
77
77
78
78
$ this ->setExpectedException (TransportException::class);
79
79
$ fetcher ->fetch ('8.2.x ' , $ this ->tmpDir );
@@ -92,7 +92,7 @@ public function testFetchVersionSpecific() {
92
92
}
93
93
94
94
public function testInitialFetch () {
95
- $ 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 ' ]);
95
+ $ 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 ' ], new NullIO () );
96
96
$ fetcher ->fetch ('8.1.1 ' , $ this ->tmpDir );
97
97
$ this ->assertFileExists ($ this ->tmpDir . '/sites/default/settings.php ' );
98
98
}
0 commit comments