/** * Tests the processRow method with an empty pipeline. */ public function testProcessRowEmptyPipeline() { $this->migration->expects($this->once())->method('getProcessPlugins')->with(NULL)->will($this->returnValue(array('test' => array()))); $row = new Row(array(), array()); $this->executable->processRow($row); $this->assertSame($row->getDestination(), array()); }
/** * Test that an outdated highwater mark does not cause a row to be imported. */ public function testOutdatedHighwater() { $source = $this->getSource([], [], MigrateIdMapInterface::STATUS_IMPORTED); // Set the originalHighwater to something higher than our timestamp. $this->migration->expects($this->any())->method('getHighwater')->willReturn($this->row['timestamp'] + 1); // The current highwater mark is now higher than the row timestamp so no row // is expected. $source->rewind(); $this->assertNull($source->current(), 'Original highwater mark is higher than incoming row timestamp.'); }