You are here

public function FunctionCallTest::test in Drupal 7 to 8/9 Module Upgrader 8

File

tests/src/Unit/Plugin/DMU/Analyzer/FunctionCallTest.php, line 40

Class

FunctionCallTest
@group DMU.Analyzer @covers \Drupal\drupalmoduleupgrader\Plugin\DMU\Analyzer\FunctionCall

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\Analyzer

Code

public function test() {
  $issues = $this->analyzer
    ->analyze($this->target);
  $this
    ->assertInternalType('array', $issues);
  $this
    ->assertNotEmpty($issues);
  $this
    ->assertIssueDefaults($issues[0]);
  $this
    ->assertCount(1, $issues[0]
    ->getViolations());
}