You are here

function OembedTestCase::testOembedRenderElements in oEmbed 8

Same name and namespace in other branches
  1. 7 oembed.test \OembedTestCase::testOembedRenderElements()
  2. 7.0 oembed.test \OembedTestCase::testOembedRenderElements()

Tests the oembed render element types.

File

./oembed.test, line 131
Tests for oembed.module.

Class

OembedTestCase

Code

function testOembedRenderElements() {
  foreach ($this->urls as $url => $info) {
    $element = oembed_render_element('oembed', $url);
    $this
      ->assertRenderedElement($element, '//*');
    if (isset($info['thumbnail']) && $info['thumbnail']) {
      $element = oembed_render_element('oembed_thumbnail', $url);
      $this
        ->assertRenderedElement($element, '//img');
    }
  }
}