Rename initApi() to init() in workers [PREMIUM-4]

This commit is contained in:
Alexey Stoletniy
2017-05-09 09:12:20 +03:00
parent 2eb98905b6
commit e85b969e11
7 changed files with 10 additions and 14 deletions

View File

@ -116,10 +116,10 @@ class SimpleWorkerTest extends MailPoetTest {
expect($worker->process())->false();
}
function testItCanInitAPIBeforeProcessing() {
function testItCanInitBeforeProcessing() {
$worker = Stub::make(
$this->worker,
array('initApi' => Stub::once()),
array('init' => Stub::once()),
$this
);
$worker->process();