Skip to content

Commit bcc061b

Browse files
committed
fix test_pre_update_option_enable_css_grid unit test
1 parent 2ce5258 commit bcc061b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

phpunit/settings/class-wp-bootstrap-blocks-settings-test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ public function test_pre_update_option_enable_css_grid() {
115115
$enable_css_grid_option_value = get_option( Settings::ENABLE_CSS_GRID_OPTION_NAME );
116116
$this->assertEquals( $constant_value, $enable_css_grid_option_value );
117117

118-
// Option value should be set to false if Bootstrap version < 5 even if constant is set to true
118+
// Option value should be set to false if Bootstrap version < 5
119119
update_option( Settings::BOOTSTRAP_VERSION_OPTION_NAME, '4' );
120+
update_option( Settings::ENABLE_CSS_GRID_OPTION_NAME, true );
120121
$this->assertEquals( false, get_option( Settings::ENABLE_CSS_GRID_OPTION_NAME ) );
121122
}
122123

0 commit comments

Comments
 (0)