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

@@ -7,7 +7,7 @@ use MailPoet\Newsletter\Shortcodes\ShortcodesHelper;
use MailPoetVendor\Idiorm\ORM;
class ShortcodesHelperTest extends \MailPoetTest {
function testGetsShortcodes() {
public function testGetsShortcodes() {
$shortcodes = ShortcodesHelper::getShortcodes();
expect(array_keys($shortcodes))->equals(
[
@@ -20,7 +20,7 @@ class ShortcodesHelperTest extends \MailPoetTest {
);
}
function testItGetsCustomShortShortcodes() {
public function testItGetsCustomShortShortcodes() {
$shortcodes = ShortcodesHelper::getShortcodes();
expect(count($shortcodes['Subscriber']))->equals(5);
$custom_field = CustomField::create();
@@ -35,7 +35,7 @@ class ShortcodesHelperTest extends \MailPoetTest {
->equals('[subscriber:cf_' . $custom_field->id . ']');
}
function _after() {
public function _after() {
ORM::raw_execute('TRUNCATE ' . CustomField::$_table);
}
}