Skip to content
Snippets Groups Projects
Unverified Commit d06a99dd authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2675006 by danflanagan8, robpowell, quietone, alexpott: Write UnitTest...

Issue #2675006 by danflanagan8, robpowell, quietone, alexpott: Write UnitTest for MigrationConfigurationTrait and fix Exception Handling
parent 8997ab6f
No related branches found
No related tags found
Loading
......@@ -48,7 +48,7 @@ public function testGetLegacyDrupalVersion($expected_version_string, $schema_ver
->method('schema')
->willReturn($schema);
$actual_version_string = MigrationConfigurationTrait::getLegacyDrupalVersion($connection);
$actual_version_string = TestMigrationConfigurationTrait::getLegacyDrupalVersion($connection);
$this->assertSame($expected_version_string, $actual_version_string);
}
......@@ -142,3 +142,11 @@ public function providerTestGetLegacyDrupalVersion() {
}
}
/**
* Test class that uses the trait we are testing.
*/
class TestMigrationConfigurationTrait {
use MigrationConfigurationTrait;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment