/**
  * Tests an issue generated by an analyzer to ensure that it has all the
  * default values pulled from the plugin definition.
  *
  * @param $issue
  *  The issue to test. Will be checked for IssueInterface conformance.
  */
 protected function assertIssueDefaults($issue)
 {
     $this->assertInstanceOf('\\Drupal\\drupalmoduleupgrader\\IssueInterface', $issue);
     $plugin_definition = $this->analyzer->getPluginDefinition();
     $this->assertEquals($plugin_definition['message'], $issue->getTitle());
     $this->assertEquals($plugin_definition['summary'], $issue->getSummary());
     $this->assertSame($issue->getDocumentation(), $plugin_definition['documentation']);
 }
 /**
  * Stores a reference to an issue detector, if we don't already know about it,
  * for use by getDetectors().
  *
  * @param AnalyzerInterface $detector
  */
 protected function addDetector(AnalyzerInterface $detector)
 {
     if ($detector instanceof PluginInspectionInterface) {
         $this->detectors[] = $detector->getPluginId();
     }
 }