PHP Class Twitter\Tests\WordPress\Shortcodes\EmbeddedTweetVideo

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: twitter/wordpress

Méthodes publiques

Méthode Description
testGetOEmbedCacheKeyCustomParameters ( ) : void Test building a unique cache key component for shortcode customizations
testSanitizeShortcodeParametersID ( string $tweet_id ) : void Test extracting a Tweet ID from a shortcode through id attribute
tweetIDProvider ( ) : array Provide Tweet values which should all evaluate to a Tweet ID of 20

Method Details

testGetOEmbedCacheKeyCustomParameters() public méthode

Test building a unique cache key component for shortcode customizations
Since: 1.0.0

testSanitizeShortcodeParametersID() public méthode

Test extracting a Tweet ID from a shortcode through id attribute
Since: 1.0.0
public testSanitizeShortcodeParametersID ( string $tweet_id ) : void
$tweet_id string Tweet ID test value
Résultat void

tweetIDProvider() public static méthode

Provide Tweet values which should all evaluate to a Tweet ID of 20
Since: 1.0.0
public static tweetIDProvider ( ) : array
Résultat array array of test values