File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 "php" : " ^7.2"
1414 },
1515 "require-dev" : {
16- "composer/composer " : " ^1.0 " ,
17- "phpunit/phpunit " : " ~8.5.0 " ,
18- "cakephp/cakephp-codesniffer " : " ^4.1 "
16+ "cakephp/cakephp-codesniffer " : " ^4.1 " ,
17+ "composer/composer " : " ^2.0@dev " ,
18+ "phpunit/phpunit " : " ~8.5.0 "
1919 },
2020 "autoload" : {
2121 "psr-4" : {
2929 },
3030 "extra" : {
3131 "class" : " Cake\\ Composer\\ Installer\\ PluginInstaller"
32- }
32+ },
33+ "config" : {
34+ "sort-packages" : true
35+ },
36+ "minimum-stability" : " dev" ,
37+ "prefer-stable" : true
3338}
Original file line number Diff line number Diff line change 77use Composer \Composer ;
88use Composer \Package \Package ;
99use Composer \Repository \RepositoryManager ;
10+ use Composer \Util \HttpDownloader ;
1011use PHPUnit \Framework \TestCase ;
1112
1213class PluginInstallerTest extends TestCase
@@ -59,9 +60,13 @@ public function setUp(): void
5960 $ composer ->setConfig ($ config );
6061
6162 $ this ->io = $ this ->getMockBuilder ('Composer\IO\IOInterface ' )->getMock ();
63+
64+ $ httpDownloader = new HttpDownloader ($ this ->io , $ config );
65+
6266 $ rm = new RepositoryManager (
6367 $ this ->io ,
64- $ config
68+ $ config ,
69+ $ httpDownloader
6570 );
6671 $ composer ->setRepositoryManager ($ rm );
6772
You can’t perform that action at this time.
0 commit comments