PHP Class Cviebrock\EloquentSluggable\Tests\BaseTests

Inheritance: extends TestCase
Afficher le fichier Open project: cviebrock/eloquent-sluggable

Méthodes publiques

Méthode Description
testAccentedCharacters ( ) Test that accented characters and other stuff is "fixed".
testCustomEngineRules ( ) Test using custom Slugify rules.
testCustomMethod ( ) Test building a slug using a custom method.
testCustomSeparator ( ) Test using a custom separator.
testCustomSuffix ( ) Test building a slug using a custom suffix.
testDoesNotNeedSluggingWhenSlugIsSet ( ) Test that models aren't slugged if the slug field is defined.
testDoesNotNeedSluggingWithUpdateWhenSlugIsSet ( ) Test that models aren't *re*slugged if the slug field is defined.
testEmptySeparator ( ) Test if using an empty separator works.
testEmptySourceGeneratesEmptySlug ( ) Test that an empty slug source creates a null slug.
testIssue20 ( ) Test model replication.
testIssue5 ( ) Test when reverting to a shorter version of a similar slug.
testMaxLength ( ) Test for max_length option.
testMaxLengthWithIncrements ( ) Test for max_length option with increments.
testMultipleSlugs ( ) Test models with multiple slug fields.
testMultipleSource ( ) Test building a slug from multiple attributes.
testNonSluggableModels ( ) Test that we don't try and slug models that don't implement Sluggable.
testReservedWord ( ) Test using reserved word blocking.
testShortConfig ( ) Test basic slugging functionality using short configuration syntax.
testSimpleSlug ( ) Test basic slugging functionality.
testSlugFromRelatedModel ( ) Test generating slug from related model field.
testSlugFromRelatedModelNotExists ( ) Test generating slug when related model doesn't exists.
testSubscriptCharacters ( ) Test subscript characters in slug field
testToStringMethod ( ) Test building a slug using the __toString method.

Method Details

testAccentedCharacters() public méthode

Test that accented characters and other stuff is "fixed".

testCustomEngineRules() public méthode

Test using custom Slugify rules.

testCustomMethod() public méthode

Test building a slug using a custom method.
public testCustomMethod ( )

testCustomSeparator() public méthode

Test using a custom separator.
public testCustomSeparator ( )

testCustomSuffix() public méthode

Test building a slug using a custom suffix.
public testCustomSuffix ( )

testDoesNotNeedSluggingWhenSlugIsSet() public méthode

Test that models aren't slugged if the slug field is defined.
See also: https://github.com/cviebrock/eloquent-sluggable/issues/32

testDoesNotNeedSluggingWithUpdateWhenSlugIsSet() public méthode

Test that models aren't *re*slugged if the slug field is defined.
See also: https://github.com/cviebrock/eloquent-sluggable/issues/32

testEmptySeparator() public méthode

Test if using an empty separator works.
See also: https://github.com/cviebrock/eloquent-sluggable/issues/256
public testEmptySeparator ( )

testEmptySourceGeneratesEmptySlug() public méthode

Test that an empty slug source creates a null slug.

testIssue20() public méthode

Test model replication.
See also: https://github.com/cviebrock/eloquent-sluggable/issues/20
public testIssue20 ( )

testIssue5() public méthode

Test when reverting to a shorter version of a similar slug.
See also: https://github.com/cviebrock/eloquent-sluggable/issues/5
public testIssue5 ( )

testMaxLength() public méthode

Test for max_length option.
public testMaxLength ( )

testMaxLengthWithIncrements() public méthode

Test for max_length option with increments.

testMultipleSlugs() public méthode

Test models with multiple slug fields.
public testMultipleSlugs ( )

testMultipleSource() public méthode

Test building a slug from multiple attributes.
public testMultipleSource ( )

testNonSluggableModels() public méthode

Test that we don't try and slug models that don't implement Sluggable.

testReservedWord() public méthode

Test using reserved word blocking.
public testReservedWord ( )

testShortConfig() public méthode

Test basic slugging functionality using short configuration syntax.
public testShortConfig ( )

testSimpleSlug() public méthode

Test basic slugging functionality.
public testSimpleSlug ( )

testSlugFromRelatedModel() public méthode

Test generating slug from related model field.

testSlugFromRelatedModelNotExists() public méthode

Test generating slug when related model doesn't exists.

testSubscriptCharacters() public méthode

Test subscript characters in slug field

testToStringMethod() public méthode

Test building a slug using the __toString method.
public testToStringMethod ( )