/** * @return void */ public function testGetRecords() { $recordCollection = $this->getMock('\\Migration\\ResourceModel\\Record\\RecordCollection', [], [], '', false); $this->recordCollectionFactory->expects($this->atLeastOnce())->method('create')->with($this->equalTo(['structure' => $this->structure, 'documentName' => 'test_document']))->will($this->returnValue($recordCollection)); $this->assertSame($recordCollection, $this->document->getRecords()); }