diff --git a/tests/features.test b/tests/features.test index 025ef23..22ad3b9 100644 --- a/tests/features.test +++ b/tests/features.test @@ -166,6 +166,17 @@ class FeaturesUserTestCase extends DrupalWebTestCase { break; } } + + /** + * Tests the if components were sorted by weight. + */ + public function testComponentsOrder() { + $feature = features_load_feature('features_test'); + $first_component = reset($feature->components); + // Dependencies component has a default weight of -10 and should be on top. + $this->assertIdentical($first_component, 'dependencies'); + } + } /**