@@ -79,7 +79,7 @@ Feature: Manage oEmbed cache.
7979 # Add a non-post embed, default attributes.
8080 Given a step1.php file:
8181 """
82- <?php echo $GLOBALS[" wp_embed" ]->run_shortcode( " [embed]https://www.youtube.com/watch?v=dQw4w9WgXcQ[/embed]" );
82+ <?php echo $GLOBALS[' wp_embed' ]->run_shortcode( ' [embed]https://www.youtube.com/watch?v=dQw4w9WgXcQ[/embed]' );
8383 """
8484 When I run `wp eval-file step1.php`
8585 Then STDOUT should contain:
@@ -93,7 +93,7 @@ Feature: Manage oEmbed cache.
9393 # Add a non-post embed with width attribute.
9494 Given a step2.php file:
9595 """
96- <?php echo $GLOBALS[" wp_embed" ]->run_shortcode( " [embed width=400]https://www.youtube.com/watch?v=yPYZpwSpKmA[/embed]" );
96+ <?php echo $GLOBALS[' wp_embed' ]->run_shortcode( ' [embed width=400]https://www.youtube.com/watch?v=yPYZpwSpKmA[/embed]' );
9797 """
9898 When I run `wp eval-file step2.php`
9999 Then STDOUT should contain:
@@ -124,7 +124,7 @@ Feature: Manage oEmbed cache.
124124 # Add a non-post embed with discover=1 attribute.
125125 Given a step3.php file:
126126 """
127- <?php echo $GLOBALS[" wp_embed" ]->run_shortcode( " [embed discover=1]https://www.youtube.com/watch?v=yBwD4iYcWC4[/embed]" );
127+ <?php echo $GLOBALS[' wp_embed' ]->run_shortcode( ' [embed discover=1]https://www.youtube.com/watch?v=yBwD4iYcWC4[/embed]' );
128128 """
129129 When I run `wp eval-file step3.php`
130130 Then STDOUT should contain:
@@ -151,7 +151,7 @@ Feature: Manage oEmbed cache.
151151 # Add a non-post embed with width and discover attributes.
152152 Given a step4.php file:
153153 """
154- <?php echo $GLOBALS[" wp_embed" ]->run_shortcode( " [embed width=450 discover=0]https://www.youtube.com/watch?v=eYuUAGXN0KM[/embed]" );
154+ <?php echo $GLOBALS[' wp_embed' ]->run_shortcode( ' [embed width=450 discover=0]https://www.youtube.com/watch?v=eYuUAGXN0KM[/embed]' );
155155 """
156156 When I run `wp eval-file step4.php`
157157 Then STDOUT should contain:
@@ -196,7 +196,7 @@ Feature: Manage oEmbed cache.
196196 # Dummy data with default width/height.
197197 Given a step5.php file:
198198 """
199- <?php echo md5( " foo" . serialize( wp_embed_defaults() ) );
199+ <?php echo md5( ' foo' . serialize( wp_embed_defaults() ) );
200200 """
201201 When I run `wp eval-file step5.php`
202202 Then STDOUT should not be empty
@@ -215,7 +215,14 @@ Feature: Manage oEmbed cache.
215215 # Dummy data with given width/height. Specify width/height as strings as that's what shortcode attributes will be passed as.
216216 Given a step6.php file:
217217 """
218- <?php echo md5( "foo" . serialize( array( "width" => "600", "height" => "400" ) ) );
218+ <?php echo md5(
219+ 'foo' . serialize(
220+ array(
221+ 'width' => '600',
222+ 'height' => '400',
223+ )
224+ )
225+ );
219226 """
220227 When I run `wp eval-file step6.php`
221228 Then STDOUT should not be empty
0 commit comments