PHP Class Cviebrock\EloquentSluggable\Tests\SoftDeleteTests

Inheritance: extends TestCase
ファイルを表示 Open project: cviebrock/eloquent-sluggable

Public Methods

Method Description
testSoftDeletesWithNonSoftDeleteModel ( ) Test that include_trashed is ignored if the model doesn't use the softDelete trait.
testSoftDeletesWithTrashed ( ) Test uniqueness with soft deletes when we include trashed models.
testSoftDeletesWithoutTrashed ( ) Test uniqueness with soft deletes when we ignore trashed models.

Method Details

testSoftDeletesWithNonSoftDeleteModel() public method

Test that include_trashed is ignored if the model doesn't use the softDelete trait.

testSoftDeletesWithTrashed() public method

Test uniqueness with soft deletes when we include trashed models.

testSoftDeletesWithoutTrashed() public method

Test uniqueness with soft deletes when we ignore trashed models.