diff options
Diffstat (limited to 'tests/PHPUnit/Core/UpdaterTest.php')
-rw-r--r-- | tests/PHPUnit/Core/UpdaterTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/PHPUnit/Core/UpdaterTest.php b/tests/PHPUnit/Core/UpdaterTest.php index f177c52de2..546a9891b6 100644 --- a/tests/PHPUnit/Core/UpdaterTest.php +++ b/tests/PHPUnit/Core/UpdaterTest.php @@ -5,7 +5,7 @@ * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -class UpdaterTest extends DatabaseTestCase +class UpdaterTest extends DatabaseTestCase { /** * @group Core @@ -36,11 +36,11 @@ class UpdaterTest extends DatabaseTestCase $this->assertEquals(1, count($componentsWithUpdateFile)); $updateFiles = $componentsWithUpdateFile['testpluginUpdates']; $this->assertEquals(2, count($updateFiles)); - + $path = PIWIK_INCLUDE_PATH . '/tests/resources/Updater/testpluginUpdates/'; $expectedInOrder = array( $path . '0.1beta2.php' => '0.1beta2', - $path . '0.1.php' => '0.1' + $path . '0.1.php' => '0.1' ); $this->assertEquals($expectedInOrder, array_map("basename", $updateFiles)); } @@ -54,13 +54,13 @@ class UpdaterTest extends DatabaseTestCase $updater = new Piwik_Updater(); $updater->pathUpdateFilePlugins = PIWIK_INCLUDE_PATH . '/tests/resources/Updater/%s/'; $updater->pathUpdateFileCore = PIWIK_INCLUDE_PATH . '/tests/resources/Updater/core/'; - + $updater->recordComponentSuccessfullyUpdated('testpluginUpdates', '0.1beta'); $updater->addComponentToCheck('testpluginUpdates', '0.1'); - + $updater->recordComponentSuccessfullyUpdated('core', '0.1'); $updater->addComponentToCheck('core', '0.3'); - + $componentsWithUpdateFile = $updater->getComponentsWithUpdateFile(); $this->assertEquals(2, count($componentsWithUpdateFile)); reset($componentsWithUpdateFile); |