Changeset 58235 for trunk/tests/phpunit/tests/oembed/controller.php
- Timestamp:
- 05/29/2024 12:20:56 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/controller.php
r58044 r58235 343 343 $this->assertSame( $post->post_title, $data['title'] ); 344 344 $this->assertSame( 'rich', $data['type'] ); 345 $this->assert True( $data['width'] <= $request['maxwidth'] );345 $this->assertLessThanOrEqual( $request['maxwidth'], $data['width'] ); 346 346 } 347 347 … … 386 386 $this->assertSame( $post->post_title, $data['title'] ); 387 387 $this->assertSame( 'rich', $data['type'] ); 388 $this->assert True( $data['width'] <= $request['maxwidth'] );388 $this->assertLessThanOrEqual( $request['maxwidth'], $data['width'] ); 389 389 390 390 update_option( 'show_on_front', 'posts' ); … … 431 431 $this->assertSame( $post->post_title, $data['title'] ); 432 432 $this->assertSame( 'rich', $data['type'] ); 433 $this->assert True( $data['width'] <= $request['maxwidth'] );433 $this->assertLessThanOrEqual( $request['maxwidth'], $data['width'] ); 434 434 } 435 435 … … 717 717 $this->assertSame( $post->post_title, $data['title'] ); 718 718 $this->assertSame( 'rich', $data['type'] ); 719 $this->assert True( $data['width'] <= $request['maxwidth'] );719 $this->assertLessThanOrEqual( $request['maxwidth'], $data['width'] ); 720 720 } 721 721 … … 766 766 $this->assertSame( $post->post_title, $data['title'] ); 767 767 $this->assertSame( 'rich', $data['type'] ); 768 $this->assert True( $data['width'] <= $request['maxwidth'] );768 $this->assertLessThanOrEqual( $request['maxwidth'], $data['width'] ); 769 769 770 770 update_option( 'show_on_front', 'posts' );
Note: See TracChangeset
for help on using the changeset viewer.