Skip to content

Commit c6e002e

Browse files
committed
restore test
1 parent a90510d commit c6e002e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/ActiveRecordWriteTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,12 @@ public function testDeleteAll()
383383
$this->assertEquals(2, $num_affected);
384384
}
385385

386+
public function testDeleteAllWithDistinct()
387+
{
388+
$this->expectException(ActiveRecordException::class);
389+
Author::distinct()->where('parent_author_id = 2')->delete_all();
390+
}
391+
386392
public function testUpdateAllWithSetAsString()
387393
{
388394
Author::update_all(['set' => 'parent_author_id = 2']);

0 commit comments

Comments
 (0)