Skip to content

Commit

Permalink
remove no longer needed tests and fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Sep 18, 2023
1 parent 19c90c8 commit 9d31a2b
Show file tree
Hide file tree
Showing 22 changed files with 41 additions and 408 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@
describe("PrivacyManager_ConsentManager", function () {
this.timeout(0);

this.fixture = "Piwik\\Tests\\Fixtures\\EmptySiteWithSiteContentDetection";
this.fixture = "Piwik\\Tests\\Fixtures\\EmptySite";

var generalParams = 'idSite=1&period=day&date=2017-01-02',
urlBase = '?module=PrivacyManager&' + generalParams + '&action=';

before(function () {
testEnvironment.pluginsToLoad = ['PrivacyManager'];
testEnvironment.detectedContentDetections = ['Osano'];
testEnvironment.connectedConsentManagers = ['Osano'];
testEnvironment.save();
});

after(function () {
testEnvironment.detectedContentDetections = [];
testEnvironment.connectedConsentManagers = [];
testEnvironment.save();
});

Expand Down
2 changes: 0 additions & 2 deletions plugins/SitesManager/SiteContentDetection/Matomo.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@

use Piwik\API\Request;
use Piwik\Common;
use Piwik\Container\StaticContainer;
use Piwik\Piwik;
use Piwik\Plugin\Manager;
use Piwik\Plugins\CustomVariables\CustomVariables;
use Piwik\Plugins\PrivacyManager\DoNotTrackHeaderChecker;
use Piwik\Site;
use Piwik\SiteContentDetector;
use Piwik\Translation\Translator;
use Piwik\Url;
use Piwik\View;

Expand Down
11 changes: 9 additions & 2 deletions plugins/Tour/tests/UI/Tour_ConsentManager_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,23 @@
describe("Tour_ConsentManager", function () {
this.timeout(0);

this.fixture = "Piwik\\Tests\\Fixtures\\EmptySiteWithSiteContentDetection";
this.fixture = "Piwik\\Tests\\Fixtures\\EmptySite";

var generalParams = 'idSite=1&period=day&date=2010-01-03',
widgetizeParams = "module=Widgetize&action=iframe";

var widgetUrl = "?" + widgetizeParams + "&" + generalParams + "&moduleToWidgetize=Tour&actionToWidgetize=getEngagement";


before(async function () {
testEnvironment.pluginsToLoad = ['Tour'];
testEnvironment.detectedContentDetections = ['Osano'];
testEnvironment.connectedConsentManagers = ['Osano'];
testEnvironment.save();
});

after(async function () {
testEnvironment.detectedContentDetections = [];
testEnvironment.connectedConsentManagers = [];
testEnvironment.save();
});

Expand Down
51 changes: 0 additions & 51 deletions tests/PHPUnit/Fixtures/EmptySiteWithSiteContentDetection.php

This file was deleted.

49 changes: 0 additions & 49 deletions tests/PHPUnit/Fixtures/EmptySiteWithSiteContentDetectionGA3.php

This file was deleted.

49 changes: 0 additions & 49 deletions tests/PHPUnit/Fixtures/EmptySiteWithSiteContentDetectionGA4.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions tests/UI/expected-screenshots/EmptySite_cloudflare.png
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.
26 changes: 0 additions & 26 deletions tests/UI/specs/EmptySite_ConsentManager_spec.js

This file was deleted.

Loading

0 comments on commit 9d31a2b

Please sign in to comment.