phpMick's avatar
Level 15
0 likes
4 replies
phpMick's avatar
phpMick
OP
Best Answer
Level 15

I know. I'm a muppet:

$this->assertSoftDeleted($table, array $data);

31 likes
bashy's avatar

Quite easily actually! I use this within Dusk but it's via PHPUnit if that's what you're using.

// Check that the user has been soft deleted
$this->assertSoftDeleted('users', [
    'id' => $deletedUser->id,
    'name' => $deletedUser->name,
    'email' => $deletedUser->email,
]);
8 likes
bashy's avatar

Ah you worked it out already :)

2 likes
phpMick's avatar
Level 15

30 seconds after posting as usual.

Thanks anyway.

Please or to participate in this conversation.