@@ -783,6 +783,11 @@ public function data_image_block_with_column_block(): array {
783
783
* @param string $expected Expected output.
784
784
*/
785
785
public function test_image_block_with_two_equal_column_block ( string $ ancestor_block_alignment , string $ image_block_alignment , string $ expected ): void {
786
+ // Skip test for WordPress versions below 6.8.
787
+ if ( version_compare ( get_bloginfo ( 'version ' ), '6.8 ' , '< ' ) ) {
788
+ $ this ->markTestSkipped ( 'This test requires WordPress 6.8 or higher. ' );
789
+ }
790
+
786
791
$ block_content = $ this ->get_columns_block_markup (
787
792
$ this ->get_image_block_markup ( self ::$ image_id , 'large ' , $ image_block_alignment ),
788
793
array (
@@ -914,6 +919,11 @@ public function data_image_block_with_two_equal_column_block(): array {
914
919
* @param string $expected Expected output.
915
920
*/
916
921
public function test_image_block_with_two_different_width_column_block ( string $ ancestor_block_alignment , string $ image_block_alignment , string $ expected ): void {
922
+ // Skip test for WordPress versions below 6.8.
923
+ if ( version_compare ( get_bloginfo ( 'version ' ), '6.8 ' , '< ' ) ) {
924
+ $ this ->markTestSkipped ( 'This test requires WordPress 6.8 or higher. ' );
925
+ }
926
+
917
927
$ block_content = $ this ->get_columns_block_markup (
918
928
$ this ->get_image_block_markup ( self ::$ image_id , 'large ' , $ image_block_alignment ),
919
929
array (
@@ -1046,6 +1056,11 @@ public function data_image_block_with_two_different_width_column_block(): array
1046
1056
* @param string $expected Expected output.
1047
1057
*/
1048
1058
public function test_image_block_with_parent_columns_and_its_parent_group_block ( string $ group_block_alignment , string $ columns_block_alignment , string $ image_block_alignment , string $ expected ): void {
1059
+ // Skip test for WordPress versions below 6.8.
1060
+ if ( version_compare ( get_bloginfo ( 'version ' ), '6.8 ' , '< ' ) ) {
1061
+ $ this ->markTestSkipped ( 'This test requires WordPress 6.8 or higher. ' );
1062
+ }
1063
+
1049
1064
$ block_content = $ this ->get_group_block_markup (
1050
1065
$ this ->get_columns_block_markup (
1051
1066
$ this ->get_image_block_markup ( self ::$ image_id , 'large ' , $ image_block_alignment ),
0 commit comments