Skip to content

Commit

Permalink
tests: fix via HOMEPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
datamweb committed Nov 2, 2022
1 parent 21a0ac6 commit 6e8fa2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Commands/UserModelGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6e8fa2c

Please sign in to comment.