You are here

public function PathMappingTest::testParsePathMapping in Gatsby Live Preview & Incremental Builds 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Unit/PathMappingTest.php \Drupal\Tests\gatsby\Unit\PathMappingTest::testParsePathMapping()

Tests GatsbyPathMapping::parsePathMapping.

@dataProvider providerParsePathMapping

File

tests/src/Unit/PathMappingTest.php, line 27

Class

PathMappingTest
Defines a test for GatsbyPathMapping.

Namespace

Drupal\Tests\gatsby\Unit

Code

public function testParsePathMapping(string $mapping, array $expected) {
  $this
    ->assertEquals($expected, PathMapping::parsePathMapping($mapping));
}