/** * @return void */ public function testLoadPage() { $this->config->expects($this->any())->method('getOption')->with('bulk_size')->will($this->returnValue($this->bulkSize)); $this->adapter->expects($this->any())->method('loadPage')->with('table', 2)->willReturn(['1', '2']); $this->assertEquals(['1', '2'], $this->resourceSource->loadPage('table', 2)); }