Skip to content

Commit 4e92dcc

Browse files
committed
Add tests for model truncate
1 parent 9442df1 commit 4e92dcc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: tests/ModelTest.php

+9
Original file line numberDiff line numberDiff line change
@@ -572,4 +572,13 @@ public function testChunkById(): void
572572

573573
$this->assertEquals(3, $count);
574574
}
575+
576+
public function testTruncateModel()
577+
{
578+
User::create(['name' => 'John Doe']);
579+
580+
User::truncate();
581+
582+
$this->assertEquals(0, User::count());
583+
}
575584
}

0 commit comments

Comments
 (0)