- Timestamp:
- 10/07/2022 01:02:07 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/selective-refresh-ajax.php
r52010 r54402 189 189 ); 190 190 191 $count_customize_render_partials_before = has_action( 'customize_render_partials_before' );192 $count_customize_render_partials_after = has_action( 'customize_render_partials_after' );193 191 ob_start(); 194 192 try { … … 201 199 $this->assertSame( '', $e->getMessage() ); 202 200 } 203 $this->assert Equals( $count_customize_render_partials_before + 1,has_action( 'customize_render_partials_before' ) );204 $this->assert Equals( $count_customize_render_partials_after + 1,has_action( 'customize_render_partials_after' ) );201 $this->assertTrue( has_action( 'customize_render_partials_before' ) ); 202 $this->assertTrue( has_action( 'customize_render_partials_after' ) ); 205 203 $output = json_decode( ob_get_clean(), true ); 206 204 $this->assertSame( array( false ), $output['data']['contents']['foo'] ); … … 327 325 ); 328 326 329 $count_customize_render_partials_before = has_action( 'customize_render_partials_before' );330 $count_customize_render_partials_after = has_action( 'customize_render_partials_after' );331 327 ob_start(); 332 328 try { … … 339 335 $this->assertSame( '', $e->getMessage() ); 340 336 } 341 $this->assert Equals( $count_customize_render_partials_before + 1,has_action( 'customize_render_partials_before' ) );342 $this->assert Equals( $count_customize_render_partials_after + 1,has_action( 'customize_render_partials_after' ) );337 $this->assertTrue( has_action( 'customize_render_partials_before' ) ); 338 $this->assertTrue( has_action( 'customize_render_partials_after' ) ); 343 339 $output = json_decode( ob_get_clean(), true ); 344 340 $this->assertSame( array( get_bloginfo( 'name', 'display' ) ), $output['data']['contents']['test_blogname'] ); … … 436 432 ); 437 433 438 $count_customize_render_partials_before = has_action( 'customize_render_partials_before' );439 $count_customize_render_partials_after = has_action( 'customize_render_partials_after' );440 434 ob_start(); 441 435 try { … … 448 442 $this->assertSame( '', $e->getMessage() ); 449 443 } 450 $this->assert Equals( $count_customize_render_partials_before + 1,has_action( 'customize_render_partials_before' ) );451 $this->assert Equals( $count_customize_render_partials_after + 1,has_action( 'customize_render_partials_after' ) );444 $this->assertTrue( has_action( 'customize_render_partials_before' ) ); 445 $this->assertTrue( has_action( 'customize_render_partials_after' ) ); 452 446 $output = json_decode( ob_get_clean(), true ); 453 447 $this->assertSame( array( get_bloginfo( 'name', 'display' ) ), $output['data']['contents']['test_dynamic_blogname'] ); … … 488 482 ); 489 483 490 $count_customize_render_partials_before = has_action( 'customize_render_partials_before' );491 $count_customize_render_partials_after = has_action( 'customize_render_partials_after' );492 484 ob_start(); 493 485 try { … … 500 492 $this->assertSame( '', $e->getMessage() ); 501 493 } 502 $this->assert Equals( $count_customize_render_partials_before + 1,has_action( 'customize_render_partials_before' ) );503 $this->assert Equals( $count_customize_render_partials_after + 1,has_action( 'customize_render_partials_after' ) );494 $this->assertTrue( has_action( 'customize_render_partials_before' ) ); 495 $this->assertTrue( has_action( 'customize_render_partials_after' ) ); 504 496 $output = json_decode( ob_get_clean(), true ); 505 497 $this->assertSame( array( get_bloginfo( 'name', 'display' ) ), $output['data']['contents']['test_blogname'] );
Note: See TracChangeset
for help on using the changeset viewer.