Add public keyword to methods
[MAILPOET-2413]
This commit is contained in:
@ -6,11 +6,11 @@ use MailPoet\API\API;
|
||||
|
||||
class APITest extends \MailPoetTest {
|
||||
|
||||
function testItCallsMPAPI() {
|
||||
public function testItCallsMPAPI() {
|
||||
expect(API::MP('v1'))->isInstanceOf('MailPoet\API\MP\v1\API');
|
||||
}
|
||||
|
||||
function testItThrowsErrorWhenWrongMPAPIVersionIsCalled() {
|
||||
public function testItThrowsErrorWhenWrongMPAPIVersionIsCalled() {
|
||||
try {
|
||||
API::MP('invalid_version');
|
||||
$this->fail('Incorrect API version exception should have been thrown.');
|
||||
|
Reference in New Issue
Block a user