getOEmbedCacheKeyCustomParameters() public static method

Generate a unique string representing oEmbed result customizations set by shortcode parameters
Since: 1.0.0
public static getOEmbedCacheKeyCustomParameters ( array $query_parameters ) : string
$query_parameters array associative array of query parameters sent to the oEmbed endpoint { @type string query parameter name @type string|bool query parameter value }
return string cache key component
Ejemplo n.º 1
0
 /**
  * Test building a unique string for shortcode parameters
  *
  * @since 1.0.0
  *
  * @covers ::getOEmbedCacheKeyCustomParameters
  * @small
  *
  * @return void
  */
 public function testGetOEmbedCacheKeyCustomParameters()
 {
     $this->assertEquals('mtr', \Twitter\WordPress\Shortcodes\EmbeddedTweet::getOEmbedCacheKeyCustomParameters(array('hide_media' => true, 'hide_thread' => true, 'align' => 'right')), 'Failed to build the expected cache key component from shortcode customizations');
 }