Skip to content
Snippets Groups Projects
Commit b837cabc authored by Aaron Bauman's avatar Aaron Bauman
Browse files

Fix queue handler test too

parent eed7ae93
No related branches found
No related tags found
No related merge requests found
Pipeline #64427 passed with warnings
......@@ -308,16 +308,14 @@ class PullBaseTest extends UnitTestCase {
->willReturn($this->entityDefinition);
$this->etm = $prophecy->reveal();
$this->pullWorker = $this->getMockBuilder(PullBase::CLASS)
->setConstructorArgs([
$this->etm,
$this->sfapi,
$this->ed,
[],
'cron_salesforce_pull',
['cron' => ['time' => 180]],
])
->getMockForAbstractClass();
$this->pullWorker = new CronPull(
$this->etm,
$this->sfapi,
$this->ed,
[],
'cron_salesforce_pull',
['cron' => ['time' => 180]],
);
$sobject = new SObject([
'id' => $this->salesforce_id,
......
......@@ -156,16 +156,14 @@ class QueueHandlerTest extends UnitTestCase {
$this->time = $this->getMockBuilder(TimeInterface::CLASS)->getMock();
$this->qh = $this->getMockBuilder(QueueHandler::CLASS)
->setConstructorArgs([
$this->qh = new QueueHandler(
$this->sfapi,
$this->etm,
$this->queue_factory,
$this->configFactory,
$this->ed,
$this->time,
])
->getMock();
$this->time
);
}
/**
......@@ -198,16 +196,14 @@ class QueueHandlerTest extends UnitTestCase {
$prophecy->get(Argument::any())->willReturn($this->queue);
$this->queue_factory = $prophecy->reveal();
$this->qh = $this->getMockBuilder(QueueHandler::CLASS)
->setConstructorArgs([
$this->qh = new QueueHandler(
$this->sfapi,
$this->etm,
$this->queue_factory,
$this->configFactory,
$this->ed,
$this->time,
])
->getMock();
$this->time
);
$result = $this->qh->getUpdatedRecords();
$this->assertFalse($result);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment