PHP 클래스 Cviebrock\EloquentSluggable\Tests\OnUpdateTests

상속: extends TestCase
파일 보기 프로젝트 열기: cviebrock/eloquent-sluggable

공개 메소드들

메소드 설명
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.