Changeset 62969
- Timestamp:
- 08/02/2026 11:48:34 PM (7 days ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 4 edited
-
blocks/wpBlockType.php (modified) (3 diffs)
-
interactivity-api/wpInteractivityAPI-wp-bind.php (modified) (2 diffs)
-
rest-api/rest-post-meta-fields.php (modified) (1 diff)
-
rest-api/wpRestMenusController.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/wpBlockType.php
r57987 r62969 529 529 ); 530 530 531 $this->assert Same( false,$callback_called, 'The callback should not be called before the variations are accessed.' );531 $this->assertFalse( $callback_called, 'The callback should not be called before the variations are accessed.' ); 532 532 $block_type->variations; // access the variations. 533 $this->assert Same( true,$callback_called, 'The callback should be called when the variations are accessed.' );533 $this->assertTrue( $callback_called, 'The callback should be called when the variations are accessed.' ); 534 534 } 535 535 … … 556 556 // If the variations are defined after registration but before first access, the callback should not override it. 557 557 $this->assertSameSets( $test_variations, $block_type->get_variations(), 'Variations are same as variations set' ); 558 $this->assert Same( false,$callback_called, 'The callback was never called.' );558 $this->assertFalse( $callback_called, 'The callback was never called.' ); 559 559 } 560 560 … … 618 618 $obtained_variations = $block_type->variations; // access the variations. 619 619 620 $this->assert Same( true,$callback_called, 'The callback should be called when the variations are accessed.' );620 $this->assertTrue( $callback_called, 'The callback should be called when the variations are accessed.' ); 621 621 $this->assertSameSets( $obtained_variations, $expected_variations, 'The variations obtained from the callback should be filtered.' ); 622 622 } -
trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-bind.php
r62944 r62969 455 455 $html = '<div data-wp-bind--id="myPlugin::state.trueValue"></div>'; 456 456 list($p) = $this->process_directives( $html ); 457 $this->assert Same( true,$p->get_attribute( 'id' ) );457 $this->assertTrue( $p->get_attribute( 'id' ) ); 458 458 } 459 459 … … 468 468 $html = '<div data-wp-bind--id="myPlugin::state.trueValue"></div>'; 469 469 list($p) = $this->process_directives( $html ); 470 $this->assert Same( true,$p->get_attribute( 'id' ) );470 $this->assertTrue( $p->get_attribute( 'id' ) ); 471 471 472 472 $html = '<div data-wp-bind--id---unique-id="myPlugin::state.trueValue"></div>'; -
trunk/tests/phpunit/tests/rest-api/rest-post-meta-fields.php
r61424 r62969 2349 2349 2350 2350 $data = $response->get_data(); 2351 $this->assert Same( false,$data['meta']['authenticated'] );2351 $this->assertFalse( $data['meta']['authenticated'] ); 2352 2352 } 2353 2353 -
trunk/tests/phpunit/tests/rest-api/wpRestMenusController.php
r59718 r62969 317 317 $this->assertSame( 'New Name', $data['name'] ); 318 318 $this->assertSame( 'New Description', $data['description'] ); 319 $this->assert Same( true,$data['auto_add'] );319 $this->assertTrue( $data['auto_add'] ); 320 320 $this->assertSame( 'new-name', $data['slug'] ); 321 321 $this->assertSame( 'just meta', $data['meta']['test_single_menu'] );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)