Skip to content

Commit 3047309

Browse files
committed
fix: user tearDown() for delete file
1 parent ee29840 commit 3047309

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/Commands/UserModelGeneratorTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ public function testGenerateUserModelWithForce(): void
8585
$this->assertStringContainsString('File overwritten: ', CITestStreamFilter::$buffer);
8686

8787
$filepath = APPPATH . 'Models/MyUserModel.php';
88-
if (is_file($filepath)) {
89-
unlink($filepath);
90-
}
88+
$this->assertFileExists($filepath);
9189
}
9290

9391
public function testGenerateUserModelWithSuffix(): void

0 commit comments

Comments
 (0)