public function testIdentifiersGetDateDimensionId()
 {
     $this->assertEquals('zcrd.template.dataset.dt', Identifiers::getDateDimensionId('ž č ř Ď', 'template'));
 }
 public function testFiltersGetForUser()
 {
     $pid = Helper::getSomeProject();
     Helper::initProjectModel($pid);
     Helper::loadData($pid);
     $user = Helper::getSomeUser();
     $filter1 = uniqid();
     $filter2 = uniqid();
     $attrIdentifier = Identifiers::getAttributeId("categories", "id");
     $attrUri = $this->client->getDatasets()->getUriForIdentifier($pid, $attrIdentifier);
     $attrValueUri = $this->client->getDatasets()->getAttributeValueUri($pid, $attrIdentifier, 'c1');
     $uri1 = $this->client->getFilters()->create($pid, $filter1, $attrUri, '=', $attrValueUri);
     $uri2 = $this->client->getFilters()->create($pid, $filter2, $attrUri, '=', $attrValueUri);
     $this->client->getFilters()->assignToUser($pid, $user['uid'], [$uri1, $uri2]);
     $filters = new Filters($this->client);
     $this->assertEquals([$uri1, $uri2], $filters->getForUser($pid, $user['uid']), '', 0, 10, true);
 }