/**
* testGetMigration method
*
* @return void
*/
function testGetMigration()
{
$result = $this->Version->getMigration('inexistent_migration', 'InexistentMigration', 'test_migration_plugin');
$this->assertFalse($result);
$result = $this->Version->getMigration('001_schema_dump', 'M4af6d40056b04408808500cb58157726', 'test_migration_plugin');
$this->assertIsA($result, 'M4af6d40056b04408808500cb58157726');
$this->assertEqual($result->description, 'Version 001 (schema dump) of TestMigrationPlugin');
// Calling twice to check if it will not try to redeclare the class
$result = $this->Version->getMigration('001_schema_dump', 'M4af6d40056b04408808500cb58157726', 'test_migration_plugin');
$this->assertIsA($result, 'M4af6d40056b04408808500cb58157726');
$this->assertEqual($result->description, 'Version 001 (schema dump) of TestMigrationPlugin');
}