Skip to content

Commit 6e8fa2c

Browse files
committed
tests: fix via HOMEPATH
1 parent 21a0ac6 commit 6e8fa2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Commands/UserModelGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testGenerateUserModel(): void
6161
public function testGenerateUserModelCustomNamespace(): void
6262
{
6363
command('shield:model MyUserModel --namespace CodeIgniter\\\\Shield');
64-
$filepath = ROOTPATH . 'src/Models/MyUserModel.php';
64+
$filepath = HOMEPATH . 'src/Models/MyUserModel.php';
6565

6666
$this->assertStringContainsString('File created: ', CITestStreamFilter::$buffer);
6767
$this->assertFileExists($filepath);

0 commit comments

Comments
 (0)