Method |
Description |
|
testFindBySlug ( ) |
Test finding a model by its primary slug. |
|
testFindBySlugOrFail ( ) |
Test finding a model by its primary slug throws an exception if the slug does not exist. |
|
testFindBySlugReturnsNullForNoRecord ( ) |
Test finding a model by its primary slug fails if the slug does not exist. |
|
testFirstSlugAsFallback ( ) |
Test primary slug is set to first defined slug if $model->slugKeyName is not set. |
|
testGetSlugKeyNameWithShortConfig ( ) |
Test that getSlugKeyName() works with the short configuration syntax. |
|
testQueryScope ( ) |
Test primary slug query scope. |
|
testSlugKeyNameProperty ( ) |
Test that primary slug is set to $model->slugKeyName when set. |
|