From 6e8fa2c8a5b2ead01f5b7b03b1b84d1ddbb88462 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Dadashi Date: Wed, 2 Nov 2022 10:18:19 +0330 Subject: [PATCH] tests: fix via `HOMEPATH` --- tests/Commands/UserModelGeneratorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Commands/UserModelGeneratorTest.php b/tests/Commands/UserModelGeneratorTest.php index 1e7e82d94..02cc5686b 100644 --- a/tests/Commands/UserModelGeneratorTest.php +++ b/tests/Commands/UserModelGeneratorTest.php @@ -61,7 +61,7 @@ public function testGenerateUserModel(): void public function testGenerateUserModelCustomNamespace(): void { command('shield:model MyUserModel --namespace CodeIgniter\\\\Shield'); - $filepath = ROOTPATH . 'src/Models/MyUserModel.php'; + $filepath = HOMEPATH . 'src/Models/MyUserModel.php'; $this->assertStringContainsString('File created: ', CITestStreamFilter::$buffer); $this->assertFileExists($filepath);