update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
|
|
@ -0,0 +1,23 @@
|
|||
<?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\Fixtures\SqlDump;
|
||||
|
||||
class DbUpdaterTestFixture extends SqlDump
|
||||
{
|
||||
public function performSetUp($setupEnvironmentOnly = false)
|
||||
{
|
||||
$this->dumpUrl = PIWIK_INCLUDE_PATH . "/tests/UI/resources/piwik1.0.sql.gz";
|
||||
$this->dropDatabaseInSetUp = true;
|
||||
$this->resetPersistedFixture = true;
|
||||
|
||||
parent::performSetUp($setupEnvironmentOnly);
|
||||
}
|
||||
}
|
||||
|
|
@ -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'),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue