PHP Класс Cviebrock\EloquentSluggable\Tests\OnUpdateTests

Наследование: extends TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
testSlugDoesChangeWhenEmptiedManually ( ) Test that the slug is regenerated if the field is emptied manually.
testSlugDoesChangeWithOnUpdate ( ) Test that the slug is regenerated if onUpdate is true.
testSlugDoesNotChangeIfSourceDoesNotChange ( ) Test that the slug is not regenerated if onUpdate is true but the source fields didn't change.
testSlugDoesNotChangeIfSourceDoesNotChangeMultiple ( ) Test that the slug is not regenerated if onUpdate is true but the source fields didn't change, even with multiple increments of the same slug.
testSlugDoesntChangeWithoutOnUpdate ( ) Test that the slug isn't regenerated if onUpdate is false.

Описание методов

testSlugDoesChangeWhenEmptiedManually() публичный Метод

Test that the slug is regenerated if the field is emptied manually.

testSlugDoesChangeWithOnUpdate() публичный Метод

Test that the slug is regenerated if onUpdate is true.

testSlugDoesNotChangeIfSourceDoesNotChange() публичный Метод

Test that the slug is not regenerated if onUpdate is true but the source fields didn't change.

testSlugDoesNotChangeIfSourceDoesNotChangeMultiple() публичный Метод

Test that the slug is not regenerated if onUpdate is true but the source fields didn't change, even with multiple increments of the same slug.
См. также: https://github.com/cviebrock/eloquent-sluggable/issues/317

testSlugDoesntChangeWithoutOnUpdate() публичный Метод

Test that the slug isn't regenerated if onUpdate is false.