コード例 #1
0
ファイル: MigrateSourceTest.php プロジェクト: ddrozdik/dmaps
 /**
  * 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.');
 }