Skip to content

Commit

Permalink
Fix php unit test - length of id was changed by this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Feb 10, 2022
1 parent d918829 commit 06788a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpunit/class-elements-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Gutenberg_Elements_Test extends WP_UnitTestCase {
* @return string String where the unique id classes were replaced with "wp-elements-1".
*/
private static function make_unique_id_one( $string ) {
return preg_replace( '/wp-elements-.{13}/', 'wp-elements-1', $string );
return preg_replace( '/wp-elements-.{20}/', 'wp-elements-1', $string );
}

/**
Expand Down

0 comments on commit 06788a7

Please sign in to comment.