Closed Theremsoe closed 5 years ago
Unfortunately yes, the deleted_at
column is currently hardcoded in the PHPUnit constraint class https://github.com/laravel/framework/blob/v6.0.4/src/Illuminate/Foundation/Testing/Constraints/SoftDeletedInDatabase.php#L54
Hmm, this indeed seems unwanted.
PR merged
Thanks guys.
Description:
Incompatibility between
assertSoftDeleted
withsoftDelete
when you define a custom name column.Steps To Reproduce:
softDeletes
method and a different column name. Example:$table->softDeletes('deleted_date');
.SoftDeletes
trait.const DELETED_AT = 'deleted_date';
.assertSoftDeleted
method and check model.