From e8a6952df572b136133e8b1918bd83789702a03f Mon Sep 17 00:00:00 2001 From: Remco Speekenbrink <98remco@gmail.com> Date: Fri, 25 Oct 2019 22:36:29 +0200 Subject: [PATCH] Add test for module_path extension --- tests/HelpersTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/HelpersTest.php b/tests/HelpersTest.php index 3686aeabd..eaf7e790e 100644 --- a/tests/HelpersTest.php +++ b/tests/HelpersTest.php @@ -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')); + } }