Skip to content

Commit

Permalink
Add test for module_path extension
Browse files Browse the repository at this point in the history
  • Loading branch information
RSpeekenbrink committed Oct 25, 2019
1 parent 9bd62d4 commit e8a6952
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/HelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@ public function it_finds_the_module_path()
{
$this->assertTrue(Str::contains(module_path('Blog'), 'modules/Blog'));
}

/** @test */
public function it_can_bind_a_relative_path_to_module_path()
{
$this->assertTrue(Str::contains(module_path('Blog', 'config/config.php'), 'modules/Blog/config/config.php'));
}
}

0 comments on commit e8a6952

Please sign in to comment.