PHP Class Twitter\Tests\WordPress\Shortcodes\EmbeddedTweetVideo

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: twitter/wordpress

Public Methods

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

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

testSanitizeShortcodeParametersID() public method

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
return void

tweetIDProvider() public static method

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