You are here

public function TargetTest::testGetPath in Drupal 7 to 8/9 Module Upgrader 8

File

tests/src/Unit/TargetTest.php, line 48

Class

TargetTest
@group DMU

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit

Code

public function testGetPath() {
  $this
    ->assertEquals($this->dir
    ->getChild('foo.module')
    ->url(), $this->target
    ->getPath('.module'));
  $this
    ->assertEquals($this->dir
    ->getChild('foo.install')
    ->url(), $this->target
    ->getPath('.install'));
}