]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/InstallerTest.php
Merge pull request #11195 from annando/issue-10966
[friendica.git] / tests / src / Core / InstallerTest.php
index 8db5a7d5c0859d913c841bd3b6a1da1fa7916d79..9256581b16ce8e8031a5a356a5b7aa68740c4a60 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
 namespace Friendica\Core;
 
 use Dice\Dice;
+use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts;
 use Friendica\Core\Config\ValueObject\Cache;
 use Friendica\DI;
 use Friendica\Network\HTTPClient\Capability\ICanHandleHttpResponses;
-use Friendica\Network\HTTPClient\Capability\ICanRequestPerHttp;
+use Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests;
 use Friendica\Test\MockedTest;
 use Friendica\Test\Util\VFSTrait;
 use Mockery;
@@ -35,6 +36,7 @@ use Mockery\MockInterface;
 class InstallerTest extends MockedTest
 {
        use VFSTrait;
+       use ArraySubsetAsserts;
 
        /**
         * @var L10n|MockInterface
@@ -331,7 +333,7 @@ class InstallerTest extends MockedTest
                        ->andReturn('test Error');
 
                // Mocking the CURL Request
-               $networkMock = Mockery::mock(ICanRequestPerHttp::class);
+               $networkMock = Mockery::mock(ICanSendHttpRequests::class);
                $networkMock
                        ->shouldReceive('fetchFull')
                        ->with('https://test/install/testrewrite')
@@ -342,7 +344,7 @@ class InstallerTest extends MockedTest
                        ->andReturn($IHTTPResult);
 
                $this->dice->shouldReceive('create')
-                    ->with(ICanRequestPerHttp::class)
+                    ->with(ICanSendHttpRequests::class)
                     ->andReturn($networkMock);
 
                DI::init($this->dice);
@@ -378,7 +380,7 @@ class InstallerTest extends MockedTest
                        ->andReturn('204');
 
                // Mocking the CURL Request
-               $networkMock = Mockery::mock(ICanRequestPerHttp::class);
+               $networkMock = Mockery::mock(ICanSendHttpRequests::class);
                $networkMock
                        ->shouldReceive('fetchFull')
                        ->with('https://test/install/testrewrite')
@@ -389,7 +391,7 @@ class InstallerTest extends MockedTest
                        ->andReturn($IHTTPResultW);
 
                $this->dice->shouldReceive('create')
-                          ->with(ICanRequestPerHttp::class)
+                          ->with(ICanSendHttpRequests::class)
                           ->andReturn($networkMock);
 
                DI::init($this->dice);