diff options
Diffstat (limited to 'plugins/CoreUpdater/Test/Fixtures/FailUpdateHttpsFixture.php')
-rw-r--r-- | plugins/CoreUpdater/Test/Fixtures/FailUpdateHttpsFixture.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/CoreUpdater/Test/Fixtures/FailUpdateHttpsFixture.php b/plugins/CoreUpdater/Test/Fixtures/FailUpdateHttpsFixture.php new file mode 100644 index 0000000000..5060c99320 --- /dev/null +++ b/plugins/CoreUpdater/Test/Fixtures/FailUpdateHttpsFixture.php @@ -0,0 +1,24 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +namespace Piwik\Plugins\CoreUpdater\Test\Fixtures; + +use Piwik\Tests\Framework\Fixture; + +/** + * Fixture that makes the update over HTTPS fail to be able to test that users can still update over HTTP. + */ +class FailUpdateHttpsFixture extends Fixture +{ + public function provideContainerConfig() + { + return array( + 'Piwik\Plugins\CoreUpdater\Updater' => \DI\object('Piwik\Plugins\CoreUpdater\Test\Mock\UpdaterMock'), + ); + } +} |