Add missing this for stubs expecting a number of method calls to work

This commit is contained in:
stoletniy
2017-06-21 19:14:17 +03:00
committed by pavel-mailpoet
parent 0e5401dd68
commit 6ff3895940
5 changed files with 27 additions and 14 deletions

View File

@@ -18,7 +18,8 @@ class InstallerTest extends MailPoetTest {
$this->installer,
array(
'getPluginInformation' => Stub::once()
)
),
$this
);
$installer->init();
apply_filters('plugins_api', null, null, null);
@@ -51,7 +52,8 @@ class InstallerTest extends MailPoetTest {
$obj->package = $obj->download_link;
return $obj;
}
)
),
$this
);
$result = $installer->getPluginInformation(false, 'plugin_information', $args);
expect($result->slug)->equals($this->slug);