Skip to content

Commit 9795adb

Browse files
authored
Merge pull request #2695 from Instrye/patch-4
fix. testSoftDeleteLeavesRow can't worker
2 parents 146cc14 + 9d969db commit 9795adb

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

admin/module/tests/database/ExampleDatabaseTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function testSoftDeleteLeavesRow()
2626
{
2727
$model = new ExampleModel();
2828
$this->setPrivateProperty($model, 'useSoftDeletes', true);
29+
$this->setPrivateProperty($model, 'tempUseSoftDeletes', true);
2930

3031
$object = $model->first();
3132
$model->delete($object->id);

admin/starter/tests/database/ExampleDatabaseTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function testSoftDeleteLeavesRow()
2626
{
2727
$model = new ExampleModel();
2828
$this->setPrivateProperty($model, 'useSoftDeletes', true);
29+
$this->setPrivateProperty($model, 'tempUseSoftDeletes', true);
2930

3031
$object = $model->first();
3132
$model->delete($object->id);

0 commit comments

Comments
 (0)