Changeset 54889 for trunk/tests/phpunit/tests/block-supports/typography.php
- Timestamp:
- 11/29/2022 12:32:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-supports/typography.php
r54823 r54889 24 24 private $orig_theme_dir; 25 25 26 function set_up() {26 public function set_up() { 27 27 parent::set_up(); 28 28 … … 49 49 * Unregisters block type after each test. 50 50 */ 51 function tear_down() {51 public function tear_down() { 52 52 // Restores the original theme directory setup. 53 53 $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir; … … 69 69 * @covers ::wp_apply_typography_support 70 70 */ 71 function test_should_kebab_case_font_size_slug_with_numbers() {71 public function test_should_kebab_case_font_size_slug_with_numbers() { 72 72 $this->test_block_name = 'test/font-size-slug-with-numbers'; 73 73 register_block_type( … … 105 105 * @covers ::wp_apply_typography_support 106 106 */ 107 function test_should_generate_font_family_with_legacy_inline_styles_using_a_value() {107 public function test_should_generate_font_family_with_legacy_inline_styles_using_a_value() { 108 108 $this->test_block_name = 'test/font-family-with-inline-styles-using-value'; 109 109 register_block_type( … … 140 140 * @covers ::wp_apply_typography_support 141 141 */ 142 function test_should_skip_serialization_for_typography_block_supports() {142 public function test_should_skip_serialization_for_typography_block_supports() { 143 143 $this->test_block_name = 'test/typography-with-skipped-serialization-block-supports'; 144 144 register_block_type( … … 188 188 * @covers ::wp_apply_typography_support 189 189 */ 190 function test_should_skip_serialization_for_letter_spacing_block_supports() {190 public function test_should_skip_serialization_for_letter_spacing_block_supports() { 191 191 $this->test_block_name = 'test/letter-spacing-with-individual-skipped-serialization-block-supports'; 192 192 register_block_type( … … 226 226 * @covers ::wp_apply_typography_support 227 227 */ 228 function test_should_generate_css_var_for_font_family_with_legacy_inline_styles() {228 public function test_should_generate_css_var_for_font_family_with_legacy_inline_styles() { 229 229 $this->test_block_name = 'test/font-family-with-inline-styles-using-css-var'; 230 230 register_block_type( … … 261 261 * @covers ::wp_apply_typography_support 262 262 */ 263 function test_should_generate_classname_for_font_family() {263 public function test_should_generate_classname_for_font_family() { 264 264 $this->test_block_name = 'test/font-family-with-class'; 265 265 register_block_type( … … 309 309 * @param string $expected_output Expected output. 310 310 */ 311 function test_wp_get_typography_font_size_value( $font_size_preset, $should_use_fluid_typography, $expected_output ) {311 public function test_wp_get_typography_font_size_value( $font_size_preset, $should_use_fluid_typography, $expected_output ) { 312 312 $actual = wp_get_typography_font_size_value( $font_size_preset, $should_use_fluid_typography ); 313 313
Note: See TracChangeset
for help on using the changeset viewer.