Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2020-11-18 23:04:51 +0300
committerGitHub <noreply@github.com>2020-11-18 23:04:51 +0300
commite2f49032a4bd1c38f32e05c7450f7179117c18d9 (patch)
treed218d8ac73e1a35b4ce178b25ebfc812d43ccb93 /tests/PHPUnit/Unit/DeprecatedMethodsTest.php
parent74271243d13327696fa252179ba555f31a4b1510 (diff)
add check for dangling invalidations (#16739)
Diffstat (limited to 'tests/PHPUnit/Unit/DeprecatedMethodsTest.php')
-rw-r--r--tests/PHPUnit/Unit/DeprecatedMethodsTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/PHPUnit/Unit/DeprecatedMethodsTest.php b/tests/PHPUnit/Unit/DeprecatedMethodsTest.php
index 7e51f28d3e..6ceaa6dc5a 100644
--- a/tests/PHPUnit/Unit/DeprecatedMethodsTest.php
+++ b/tests/PHPUnit/Unit/DeprecatedMethodsTest.php
@@ -8,6 +8,7 @@
namespace Piwik\Tests\Unit;
+use Piwik\CronArchive;
use Piwik\Date;
use Piwik\Version;
use ReflectionClass;
@@ -84,6 +85,9 @@ class DeprecatedMethodsTest extends \PHPUnit\Framework\TestCase
$this->assertDeprecatedMethodIsRemovedInPiwik4('Piwik\SettingsPiwik', 'isPiwikInstalled');
$this->assertDeprecatedMethodIsRemovedInPiwik4('Piwik\Piwik', 'doAsSuperUser');
+
+ $validTill = '2021-03-01';
+ $this->assertDeprecatedMethodIsRemovedBeforeDate(CronArchive::class, 'checkNoDanglingInvalidations', $validTill);
}