diff --git a/tests/phpunit/tests/media.php b/tests/phpunit/tests/media.php
index 592b19e328..0096396995 100644
|
a
|
b
|
VIDEO;
|
| 1022 | 1022 | |
| 1023 | 1023 | /** |
| 1024 | 1024 | * @ticket 35367 |
| | 1025 | * @ticket 54788 |
| 1025 | 1026 | * @depends test_video_shortcode_body |
| 1026 | 1027 | */ |
| 1027 | 1028 | public function test_wp_video_shortcode_attributes() { |
| … |
… |
VIDEO;
|
| 1034 | 1035 | $this->assertStringContainsString( 'src="https://example.com/foo.mp4', $actual ); |
| 1035 | 1036 | $this->assertStringNotContainsString( 'loop', $actual ); |
| 1036 | 1037 | $this->assertStringNotContainsString( 'autoplay', $actual ); |
| | 1038 | $this->assertStringNotContainsString( 'muted', $actual ); |
| 1037 | 1039 | $this->assertStringContainsString( 'preload="metadata"', $actual ); |
| 1038 | 1040 | $this->assertStringContainsString( 'width="640"', $actual ); |
| 1039 | 1041 | $this->assertStringContainsString( 'height="360"', $actual ); |
| … |
… |
VIDEO;
|
| 1045 | 1047 | 'poster' => 'https://example.com/foo.png', |
| 1046 | 1048 | 'loop' => true, |
| 1047 | 1049 | 'autoplay' => true, |
| | 1050 | 'muted' => true, |
| 1048 | 1051 | 'preload' => true, |
| 1049 | 1052 | 'width' => 123, |
| 1050 | 1053 | 'height' => 456, |
| … |
… |
VIDEO;
|
| 1056 | 1059 | $this->assertStringContainsString( 'poster="https://example.com/foo.png', $actual ); |
| 1057 | 1060 | $this->assertStringContainsString( 'loop="1"', $actual ); |
| 1058 | 1061 | $this->assertStringContainsString( 'autoplay="1"', $actual ); |
| | 1062 | $this->assertStringContainsString( 'muted', $actual ); |
| 1059 | 1063 | $this->assertStringContainsString( 'preload="1"', $actual ); |
| 1060 | 1064 | $this->assertStringContainsString( 'width="123"', $actual ); |
| 1061 | 1065 | $this->assertStringContainsString( 'height="456"', $actual ); |