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

@ -13,7 +13,7 @@ class SendGridMapperTest extends \MailPoetUnitTest {
/** @var array */
private $response = [];
function _before() {
public function _before() {
parent::_before();
$this->mapper = new SendGridMapper();
$this->response = [
@ -23,14 +23,14 @@ class SendGridMapperTest extends \MailPoetUnitTest {
];
}
function testGetProperError() {
public function testGetProperError() {
$error = $this->mapper->getErrorFromResponse($this->response, 'john@rambo.com');
expect($error->getLevel())->equals(MailerError::LEVEL_HARD);
expect($error->getMessage())->equals('Some message');
expect($error->getSubscriberErrors()[0]->getEmail())->equals('john@rambo.com');
}
function testGetSoftErrorForInvalidEmail() {
public function testGetSoftErrorForInvalidEmail() {
$this->response['errors'][0] = 'Invalid email address ,,@';
$error = $this->mapper->getErrorFromResponse($this->response, ',,@');
expect($error->getLevel())->equals(MailerError::LEVEL_SOFT);