Changeset 35408 for trunk/tests/phpunit/tests/oembed/controller.php
- Timestamp:
- 10/27/2015 08:43:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/controller.php
r35354 r35408 14 14 $legacy_controller = new WP_oEmbed_Controller(); 15 15 16 $this->assertEquals( 'Invalid URL.', $legacy_controller->dispatch( $request ) );16 $this->assertEquals( get_status_header_desc( 404 ), $legacy_controller->dispatch( $request ) ); 17 17 } 18 18 … … 28 28 // WP_Query arguments. 29 29 $request = array( 30 'url' 30 'url' => get_permalink( $post->ID ), 31 31 'format' => 'json', 32 32 'maxwidth' => 400, … … 70 70 71 71 $request = array( 72 'url' 72 'url' => get_permalink( $post->ID ), 73 73 'format' => 'json', 74 74 'maxwidth' => 600, … … 93 93 94 94 $request = array( 95 'url' 95 'url' => get_permalink( $post->ID ), 96 96 'format' => 'json', 97 97 'maxwidth' => 600, … … 113 113 $legacy_controller = new WP_oEmbed_Controller(); 114 114 115 $this->assertEquals( 'Not implemented',$legacy_controller->json_response( null, $request ) );116 $this->assertEquals( 'Not implemented',$legacy_controller->json_response( 123, $request ) );117 $this->assertEquals( 'Not implemented',$legacy_controller->json_response( array(), $request ) );115 $this->assertEquals( get_status_header_desc( 501 ), $legacy_controller->json_response( null, $request ) ); 116 $this->assertEquals( get_status_header_desc( 501 ), $legacy_controller->json_response( 123, $request ) ); 117 $this->assertEquals( get_status_header_desc( 501 ), $legacy_controller->json_response( array(), $request ) ); 118 118 } 119 119
Note: See TracChangeset
for help on using the changeset viewer.