PHP Class Cviebrock\EloquentSluggable\Tests\BaseTests

Inheritance: extends TestCase
Datei anzeigen Open project: cviebrock/eloquent-sluggable

Public Methods

Method 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 method

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

testCustomEngineRules() public method

Test using custom Slugify rules.

testCustomMethod() public method

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

testCustomSeparator() public method

Test using a custom separator.
public testCustomSeparator ( )

testCustomSuffix() public method

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

testDoesNotNeedSluggingWhenSlugIsSet() public method

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

testDoesNotNeedSluggingWithUpdateWhenSlugIsSet() public method

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 method

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

testEmptySourceGeneratesEmptySlug() public method

Test that an empty slug source creates a null slug.

testIssue20() public method

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

testIssue5() public method

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 method

Test for max_length option.
public testMaxLength ( )

testMaxLengthWithIncrements() public method

Test for max_length option with increments.

testMultipleSlugs() public method

Test models with multiple slug fields.
public testMultipleSlugs ( )

testMultipleSource() public method

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

testNonSluggableModels() public method

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

testReservedWord() public method

Test using reserved word blocking.
public testReservedWord ( )

testShortConfig() public method

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

testSimpleSlug() public method

Test basic slugging functionality.
public testSimpleSlug ( )

testSlugFromRelatedModel() public method

Test generating slug from related model field.

testSlugFromRelatedModelNotExists() public method

Test generating slug when related model doesn't exists.

testSubscriptCharacters() public method

Test subscript characters in slug field

testToStringMethod() public method

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