matomo / tests /PHPUnit /Integration /Columns /DimensionsProviderTest.php
Leon4gr45's picture
Upload folder using huggingface_hub (part 55)
bf8c0ce verified
Raw History Blame Contribute Delete
906 Bytes
<?php
/**
* 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);
}
}