public function testGetTableDdlCopy() { $table = $this->getMockBuilder('Magento\\Framework\\DB\\Ddl\\Table')->disableOriginalConstructor()->getMock(); $this->pdoMysql->expects($this->once())->method('createTableByDdl')->with('source_table', 'destination_table')->will($this->returnValue($table)); $this->adapterMysql->getTableDdlCopy('source_table', 'destination_table'); }