Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
rudy-regazzoni-sonarsource committed Nov 8, 2024
1 parent 51775f7 commit afc2b13
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
class FrameworkDetectionPHPTest {

@RegisterExtension
public static OrchestratorExtension orchestrator = Tests.ORCHESTRATOR;
public static final OrchestratorExtension orchestrator = Tests.ORCHESTRATOR;

@Test
void shouldNotDetectIssueWhenFrameworkDetectionDisabled() {
Expand All @@ -46,15 +46,15 @@ void shouldDetectIssueWhenFrameworkDetectionEnabled() {
assertThat(issues).hasSize(1);
}

List<Issues.Issue> scanDrupalProject(String name, String key, boolean frameworkDetetionEnabled) {
List<Issues.Issue> scanDrupalProject(String name, String key, boolean frameworkDetectionEnabled) {
Tests.provisionProject(key, name, "php", "drupal-profile");
SonarScanner build = createScanner()
.setProjectDir(Tests.projectDirectoryFor("drupal_project"))
.setProjectKey(key)
.setProjectName(name)
.setSourceEncoding("UTF-8")
.setSourceDirs(".")
.setProperty("sonar.php.frameworkDetection", "" + frameworkDetetionEnabled);
.setProperty("sonar.php.frameworkDetection", "" + frameworkDetectionEnabled);
Tests.executeBuildWithExpectedWarnings(orchestrator, build);
return Tests.issuesForComponent(key);
}
Expand Down

0 comments on commit afc2b13

Please sign in to comment.