Add public keyword to methods

[MAILPOET-2413]
This commit is contained in:
Amine Ben hammou
2019-12-26 12:56:49 +01:00
committed by wxa
parent ec409042d5
commit 43df66d162
823 changed files with 4440 additions and 4440 deletions

View File

@ -23,7 +23,7 @@ class UrlTest extends \MailPoetTest {
/** @var SettingsController */
private $settings;
function _before() {
public function _before() {
parent::_before();
$this->settings = SettingsController::getInstance();
$referral_detector = new ReferralDetector(WPFunctions::get(), $this->settings);
@ -33,7 +33,7 @@ class UrlTest extends \MailPoetTest {
$this->url = new SubscriptionUrlFactory(WPFunctions::get(), $this->settings, new LinkTokens);
}
function testItReturnsTheDefaultPageUrlIfNoPageIsSetInSettings() {
public function testItReturnsTheDefaultPageUrlIfNoPageIsSetInSettings() {
$this->settings->delete('subscription');
$url = $this->url->getCaptchaUrl('abc');
@ -47,21 +47,21 @@ class UrlTest extends \MailPoetTest {
expect($url)->contains('endpoint=subscription');
}
function testItReturnsTheCaptchaUrl() {
public function testItReturnsTheCaptchaUrl() {
$url = $this->url->getCaptchaUrl('abc');
expect($url)->notNull();
expect($url)->contains('action=captcha');
expect($url)->contains('endpoint=subscription');
}
function testItReturnsTheCaptchaImageUrl() {
public function testItReturnsTheCaptchaImageUrl() {
$url = $this->url->getCaptchaImageUrl(250, 100, 'abc');
expect($url)->notNull();
expect($url)->contains('action=captchaImage');
expect($url)->contains('endpoint=subscription');
}
function testItReturnsTheConfirmationUrl() {
public function testItReturnsTheConfirmationUrl() {
// preview
$url = $this->url->getConfirmationUrl(null);
expect($url)->notNull();
@ -79,7 +79,7 @@ class UrlTest extends \MailPoetTest {
$this->checkData($url);
}
function testItReturnsTheManageSubscriptionUrl() {
public function testItReturnsTheManageSubscriptionUrl() {
// preview
$url = $this->url->getManageUrl(null);
expect($url)->notNull();
@ -97,7 +97,7 @@ class UrlTest extends \MailPoetTest {
$this->checkData($url);
}
function testItReturnsTheUnsubscribeUrl() {
public function testItReturnsTheUnsubscribeUrl() {
// preview
$url = $this->url->getUnsubscribeUrl(null);
expect($url)->notNull();
@ -125,7 +125,7 @@ class UrlTest extends \MailPoetTest {
expect($data['token'])->notEmpty();
}
function _after() {
public function _after() {
$this->di_container->get(SettingsRepository::class)->truncate();
Subscriber::deleteMany();
}