Skip to content

Commit 7f9ffac

Browse files
committed
test: rename test methods and add comments
1 parent e05c0b7 commit 7f9ffac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/system/Autoloader/FileLocatorTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)