You are here

public function PathTraitTest::testJoinPaths in Tome 8

@covers \Drupal\tome_base\PathTrait::joinPaths

@dataProvider dataProvider

File

modules/tome_base/tests/src/Unit/PathTraitTest.php, line 19

Class

PathTraitTest
@coversDefaultClass \Drupal\tome_base\PathTrait @group tome_base

Namespace

Drupal\Tests\tome_base\Unit

Code

public function testJoinPaths($paths, $expected) {
  $mock = $this
    ->getMockForTrait(PathTrait::class);
  $reflection = new \ReflectionMethod(get_class($mock), 'joinPaths');
  $reflection
    ->setAccessible(TRUE);
  $this
    ->assertEquals($expected, $reflection
    ->invokeArgs($mock, $paths));
}