Download tests/PHPUnit/Integration/Columns/DimensionsProviderTest.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 906 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Integration/Columns/DimensionsProviderTest.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/tests/PHPUnit/Integration/Columns/DimensionsProviderTest.php
-
curl -L -o DimensionsProviderTest.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Integration/Columns/DimensionsProviderTest.php
906 Bytes
| /** | |
| * 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\Tests\Integration\Columns; | |
| use Piwik\Columns\DimensionsProvider; | |
| use Piwik\Plugin\Manager; | |
| use Piwik\Tests\Framework\TestCase\IntegrationTestCase; | |
| /** | |
| * @group Core | |
| */ | |
| class DimensionsProviderTest extends IntegrationTestCase | |
| { | |
| /** | |
| * @var DimensionsProvider | |
| */ | |
| private $provider; | |
| public function setUp(): void | |
| { | |
| parent::setUp(); | |
| $this->provider = new DimensionsProvider(); | |
| } | |
| public function testFactory() | |
| { | |
| Manager::getInstance()->loadPlugins(array('ExampleTracker')); | |
| $dimension = $this->provider->factory("ExampleTracker.ExampleDimension"); | |
| $this->assertInstanceOf('Piwik\Plugins\ExampleTracker\Columns\ExampleDimension', $dimension); | |
| } | |
| } | |