Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Nov 20, 2024
1 parent 9aa0f4c commit e93a471
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 26 deletions.
7 changes: 5 additions & 2 deletions plugins/Marketplace/tests/Integration/PluginsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Piwik\Plugins\Marketplace\Plugins;
use Piwik\Plugins\Marketplace\tests\Framework\Mock\Client;
use Piwik\Plugins\Marketplace\tests\Framework\Mock\Service;
use Piwik\Tests\Framework\Fixture;
use Piwik\Tests\Framework\Mock\ProfessionalServices\Advertising;
use Piwik\Tests\Framework\TestCase\IntegrationTestCase;
use Piwik\Plugin;
Expand Down Expand Up @@ -191,6 +192,8 @@ public function testGetPluginInfoNoSuchPluginExists()

public function testGetPluginInfoNotInstalledPluginShouldEnrichPluginInformation()
{
Fixture::loadAllTranslations();

$this->service->returnFixture('v2.0_plugins_Barometer_info.json');
$plugin = $this->plugins->getPluginInfo('Barometer');

Expand Down Expand Up @@ -269,7 +272,7 @@ public function testGetPluginInfoNotInstalledPluginShouldEnrichPluginInformation
'homepage' => 'http://geekproject.eu',
],],
'repositoryUrl' => 'https://github.com/halfdan/piwik-barometer-plugin',
'lastUpdated' => 'Intl_4or41Intl_Time_AMt_357Intl_Time_AMt_S12ort',
'lastUpdated' => 'Dec 23, 2014',
'latestVersion' => '0.5.0',
'numDownloads' => 0,
'screenshots' =>
Expand Down Expand Up @@ -310,7 +313,7 @@ public function testGetPluginInfoNotInstalledPluginShouldEnrichPluginInformation
'canBePurchased' => false,
'isEligibleForFreeTrial' => false,
'priceFrom' => null,
'numDownloadsPretty' => 0,
'numDownloadsPretty' => '0',
'hasDownloadLink' => true,
'licenseStatus' => '',
'category' => 'customisation',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
</row>
<row>
<code>ka</code>
<name>ქართული</name>
<name>Ქართული</name>
<english_name>Georgian</english_name>
</row>
<row>
Expand All @@ -167,7 +167,7 @@
</row>
<row>
<code>ku</code>
<name>Kurdî</name>
<name>Kurdî (kurmancî)</name>
<english_name>Kurdish</english_name>
</row>
<row>
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPUnit/Unit/Translation/TranslatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function getAndListingData(): array
[['1', '2', '3'], 'cs', '1, 2 a 3'],
[['1', '2', '3'], 'de', '1, 2 und 3'],
[['1', '2', '3', '4'], 'de', '1, 2, 3 und 4'],
[['1', '2', '3', '4'], 'am', '1፣ 2፣ 3, እና 4'],
[['1', '2', '3', '4'], 'am', '1፣ 2፣ 3 እና 4'],
];
}

Expand Down Expand Up @@ -141,7 +141,7 @@ public function getOrListingData(): array
[['1', '2', '3'], 'cs', '1, 2 nebo 3'],
[['1', '2', '3'], 'de', '1, 2 oder 3'],
[['1', '2', '3', '4'], 'de', '1, 2, 3 oder 4'],
[['1', '2', '3', '4'], 'am', '1፣ 2፣ 3 ወይም 4'],
[['1', '2', '3', '4'], 'am', '1፣ 2፣ 3 ወይም 4'],
];
}

Expand Down

0 comments on commit e93a471

Please sign in to comment.