Skip to content

Commit

Permalink
Tests: display link instead of embed for Medium collections
Browse files Browse the repository at this point in the history
Medium does not support Collection embeds anymore.
  • Loading branch information
jeherve committed Apr 30, 2019
1 parent 0084d27 commit e47e387
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/php/modules/shortcodes/test-class.medium.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ public function test_shortcode_medium_faux_embed_story() {
}

/**
* Verify that a post with a link to a Medium collection displays collection markup.
* Verify that a post with a link to a Medium collection displays link (collection embeds are not supported anymore).
*
* @since 7.3.0
* @since 7.4.0
*/
public function test_shortcode_medium_faux_embed_collection() {
$collection_url = 'https://medium.com/s/user-friendly';

$content = apply_filters( 'the_content', $collection_url );

$this->assertContains(
'<a class="m-collection" href="' . $collection_url,
'<a href="' . $collection_url . '" target="_blank" rel="noopener noreferrer">View this collection on Medium.com</a>',
$content
);
}
Expand Down

0 comments on commit e47e387

Please sign in to comment.