test_class.file: sonar-php-plugin/src/test/java/org/sonar/plugins/php/DrupalProfileDefinitionTest.java
test_class.identifier: DrupalProfileDefinitionTest
test_case.body: @Test
    public void profile_creation() {
      Context context = new Context();
      new DrupalProfileDefinition().define(context);
      BuiltInQualityProfile profile = context.profile("php", "Drupal");
  
      assertThat(profile.language()).isEqualTo(Php.KEY);
      assertThat(profile.name()).isEqualTo("Drupal");
      assertThat(profile.rules()).hasSize(21);
  
      BuiltInActiveRule lineLengthRule = profile.rule(RuleKey.of("php", "S103"));
      assertThat(lineLengthRule.overriddenParam("maximumLineLength").overriddenValue()).isEqualTo("140");
  
      BuiltInActiveRule ruleS4833 = profile.rule(RuleKey.of("php", "S4833"));
      assertThat(ruleS4833.overriddenParams()).isEmpty();
    }
test_case.class_method_signature: DrupalProfileDefinitionTest.profile_creation()
test_case.full_signature: @Test public void profile_creation()
test_case.identifier: profile_creation
test_case.invocations: define profile isEqualTo assertThat language isEqualTo assertThat name hasSize assertThat rules rule of isEqualTo assertThat overriddenValue overriddenParam rule of isEmpty assertThat overriddenParams
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void profile_creation()
focal_class.file: sonar-php-plugin/src/main/java/org/sonar/plugins/php/DrupalProfileDefinition.java
focal_class.identifier: DrupalProfileDefinition
focal_class.interfaces: implements BuiltInQualityProfilesDefinition
focal_class.class_method_signature: DrupalProfileDefinition.define(Context context)
focal_class.full_signature: @Override public void define(Context context)
focal_class.identifier: define
focal_class.modifiers: @Override public
focal_class.parameters: (Context context)
focal_class.return: void
focal_class.signature: void define(Context context)
focal_method.body: @Override
    public void define(Context context) {
      NewBuiltInQualityProfile profile = context.createBuiltInQualityProfile("Drupal", Php.KEY);
      XmlProfileParser.parse("org/sonar/plugins/php/profile/drupal-profile.xml", profile);
      profile.done();
    }
focal_method.class_method_signature: DrupalProfileDefinition.define(Context context)
focal_method.full_signature: @Override public void define(Context context)
focal_method.identifier: define
focal_method.invocations: createBuiltInQualityProfile parse done
focal_method.modifiers: @Override public
focal_method.parameters: (Context context)
focal_method.return: void
focal_method.signature: void define(Context context)