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

@@ -10,11 +10,11 @@ class BulkActionFactoryTest extends \MailPoetTest {
/** @var BulkActionFactory */
private $bulk_action_factory;
function _before() {
public function _before() {
$this->bulk_action_factory = new BulkActionFactory();
}
function testItReturnsCustomActionClass() {
public function testItReturnsCustomActionClass() {
$model_class = Subscriber::class;
$method = 'bulkTestAction';
$action_class = new BulkActionClassStub;
@@ -23,7 +23,7 @@ class BulkActionFactoryTest extends \MailPoetTest {
expect($resulting_class)->equals($action_class);
}
function testItThrowsIfANonExistentActionMethodIsBeingRegistered() {
public function testItThrowsIfANonExistentActionMethodIsBeingRegistered() {
$model_class = Subscriber::class;
$method = 'bulkDoesNotExist';
$action_class = new BulkActionClassStub;
@@ -35,7 +35,7 @@ class BulkActionFactoryTest extends \MailPoetTest {
}
}
function testItThrowsIfANonExistentActionClassIsBeingRegistered() {
public function testItThrowsIfANonExistentActionClassIsBeingRegistered() {
$model_class = Subscriber::class;
$method = 'bulkDoesNotExist';
$action_class = '\MailPoet\Some\Non\Existent\Class';
@@ -47,14 +47,14 @@ class BulkActionFactoryTest extends \MailPoetTest {
}
}
function testItReturnsModelClassByDefault() {
public function testItReturnsModelClassByDefault() {
$model_class = Subscriber::class;
$method = 'bulkTrash';
$resulting_class = $this->bulk_action_factory->getActionClass($model_class, $method);
expect($resulting_class)->equals($model_class);
}
function testItThrowsIfANonExistentModelMethodIsProvided() {
public function testItThrowsIfANonExistentModelMethodIsProvided() {
$model_class = Subscriber::class;
$method = 'bulkDoesNotExist';
try {