File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,21 +94,23 @@ public function testLocateFileNotNamespacedWorksInNestedAppDirectory()
9494 $ this ->assertSame ($ expected , $ this ->locator ->locateFile ($ file , 'Controllers ' ));
9595 }
9696
97- public function testLocateFileReplacesFolderName ()
97+ public function testLocateFileWithFolderNameInFile ()
9898 {
9999 $ file = '\App\Views/errors/html/error_404.php ' ;
100100
101101 $ expected = APPPATH . 'Views/errors/html/error_404.php ' ;
102102
103+ // This works because $file contains `Views`.
103104 $ this ->assertSame ($ expected , $ this ->locator ->locateFile ($ file , 'Views ' ));
104105 }
105106
106- public function testLocateFileReplacesFolderNameLegacy ()
107+ public function testLocateFileNotNamespacedWithFolderNameInFile ()
107108 {
108109 $ file = 'Views/welcome_message.php ' ; // not namespaced
109110
110111 $ expected = APPPATH . 'Views/welcome_message.php ' ;
111112
113+ // This works because $file contains `Views`.
112114 $ this ->assertSame ($ expected , $ this ->locator ->locateFile ($ file , 'Views ' ));
113115 }
114116
You can’t perform that action at this time.
0 commit comments