Download plugins/ExamplePlugin/tests/System/SimpleSystemTest.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/ExamplePlugin/tests/System/SimpleSystemTest.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/ExamplePlugin/tests/System/SimpleSystemTest.php
-
curl -L -o SimpleSystemTest.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/ExamplePlugin/tests/System/SimpleSystemTest.php
1.45 kB
| /** | |
| * Matomo - free/libre analytics platform | |
| * | |
| * @link https://matomo.org | |
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| */ | |
| namespace Piwik\Plugins\ExamplePlugin\tests\System; | |
| use Piwik\Plugins\ExamplePlugin\tests\Fixtures\SimpleFixtureTrackFewVisits; | |
| use Piwik\Tests\Framework\TestCase\SystemTestCase; | |
| /** | |
| * @group ExamplePlugin | |
| * @group SimpleSystemTest | |
| * @group Plugins | |
| */ | |
| class SimpleSystemTest extends SystemTestCase | |
| { | |
| /** | |
| * @var SimpleFixtureTrackFewVisits | |
| */ | |
| public static $fixture = null; // initialized below class definition | |
| /** | |
| * @dataProvider getApiForTesting | |
| */ | |
| public function testApi($api, $params) | |
| { | |
| $this->runApiTests($api, $params); | |
| } | |
| public function getApiForTesting() | |
| { | |
| $api = array( | |
| 'API.get', | |
| 'Goals.getItemsSku', | |
| ); | |
| $apiToTest = array(); | |
| $apiToTest[] = array($api, | |
| array( | |
| 'idSite' => 1, | |
| 'date' => self::$fixture->dateTime, | |
| 'periods' => array('day'), | |
| 'testSuffix' => '', | |
| ), | |
| ); | |
| return $apiToTest; | |
| } | |
| public static function getOutputPrefix() | |
| { | |
| return ''; | |
| } | |
| public static function getPathToTestDirectory() | |
| { | |
| return dirname(__FILE__); | |
| } | |
| } | |
| SimpleSystemTest::$fixture = new SimpleFixtureTrackFewVisits(); | |