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

@@ -14,11 +14,11 @@ class WoocommerceSettingsTest extends \MailPoetTest {
/** @var WPFunctions */
private $wp;
function _before() {
public function _before() {
$this->wp = new WPFunctions();
$this->endpoint = new WoocommerceSettings($this->wp);
}
function testItCanSetSettings() {
public function testItCanSetSettings() {
$this->wp->updateOption('woocommerce_email_base_color', '#ffffff');
$response = $this->endpoint->set([
'woocommerce_email_base_color' => '#aaaaaa',
@@ -27,7 +27,7 @@ class WoocommerceSettingsTest extends \MailPoetTest {
expect($this->wp->getOption('woocommerce_email_base_color'))->equals('#aaaaaa');
}
function testItDoesNotSetUnallowedSettings() {
public function testItDoesNotSetUnallowedSettings() {
$response = $this->endpoint->set([
'mailpoet_some_none_exting_option' => 'some value',
]);