diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2020-11-18 23:04:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 23:04:51 +0300 |
commit | e2f49032a4bd1c38f32e05c7450f7179117c18d9 (patch) | |
tree | d218d8ac73e1a35b4ce178b25ebfc812d43ccb93 /tests/PHPUnit/Unit/DeprecatedMethodsTest.php | |
parent | 74271243d13327696fa252179ba555f31a4b1510 (diff) |
add check for dangling invalidations (#16739)
Diffstat (limited to 'tests/PHPUnit/Unit/DeprecatedMethodsTest.php')
-rw-r--r-- | tests/PHPUnit/Unit/DeprecatedMethodsTest.php | 4 |
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); } |