Skip to content

Commit

Permalink
refs #5065 add test to be reminded to remove @deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed May 2, 2014
1 parent 952b8aa commit ffdc6f0
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions tests/PHPUnit/Core/DeprecatedMethodsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,8 @@ class DeprecatedMethodsTest extends PHPUnit_Framework_TestCase

public function test_version2_0_4()
{
$validTill = '2014-04-01';
$this->assertDeprecatedMethodIsRemoved('\Piwik\Piwik', 'isUserIsSuperUserOrTheUser', $validTill);
$this->assertDeprecatedMethodIsRemoved('\Piwik\Piwik', 'checkUserIsSuperUserOrTheUser', $validTill);
$this->assertDeprecatedMethodIsRemoved('\Piwik\Piwik', 'isUserIsSuperUser', $validTill);
$this->assertDeprecatedMethodIsRemoved('\Piwik\Piwik', 'setUserIsSuperUser', $validTill);
$this->assertDeprecatedMethodIsRemoved('\Piwik\Piwik', 'checkUserIsSuperUser', $validTill);
$this->assertDeprecatedMethodIsRemoved('\Piwik\Piwik', 'getSuperUserLogin', $validTill);
$this->assertDeprecatedMethodIsRemoved('\Piwik\Piwik', 'getSuperUserEmail', $validTill);
$this->assertDeprecatedMethodIsRemoved('\Piwik\Access', 'isSuperUser', $validTill);
$this->assertDeprecatedMethodIsRemoved('\Piwik\Access', 'checkUserIsSuperUser', $validTill);
$this->assertDeprecatedMethodIsRemoved('\Piwik\Access', 'getSuperUserLogin', $validTill);
$this->assertDeprecatedMethodIsRemoved('\Piwik\Access', 'setSuperUser', $validTill);
$this->assertDeprecatedMethodIsRemoved('\FakeAccess', 'checkUserIsSuperUser', $validTill);
$this->assertDeprecatedMethodIsRemoved('\FakeAccess', 'setSuperUser', $validTill);
$this->assertDeprecatedMethodIsRemoved('\FakeAccess', 'getSuperUserLogin', $validTill);
$validTill = '2014-06-15';
$this->assertDeprecatedMethodIsRemoved('\Piwik\Period', 'factory', $validTill);

$validTill = '2014-10-01';
$this->assertDeprecatedMethodIsRemoved('\Piwik\Config', 'getConfigSuperUserForBackwardCompatibility', $validTill);
Expand Down

0 comments on commit ffdc6f0

Please sign in to comment.