Example #1
0
 public function testCreateBatch()
 {
     $mockBatch = $this->getMockBuilder('Silktide\\BrightLocalApi\\Batch')->disableOriginalConstructor()->getMock();
     $this->batchFactory->expects($this->atLeastOnce())->method('createBatch')->with(false)->willReturn($mockBatch);
     $resultBatch = $this->client->createNewBatch();
     $this->assertEquals($mockBatch, $resultBatch);
 }