WordPress.org

Make WordPress Core

Ticket #16327: 16327-ut.diff

File 16327-ut.diff, 564 bytes (added by ryan, 21 months ago)
  • tests/media.php

     
    103103    $this->assertEquals( 1, preg_match_all( "~wp-caption-text.*{$content_preg}~", $result, $_r ) ); 
    104104  } 
    105105 
     106        function test_add_remove_oembed_provider() { 
     107                wp_oembed_add_provider( 'http://foo.bar/*', 'http://foo.bar/oembed' ); 
     108                $this->assertTrue( wp_oembed_remove_provider( 'http://foo.bar/*' ) ); 
     109                $this->assertFalse( wp_oembed_remove_provider( 'http://foo.bar/*' ) ); 
     110        } 
    106111}