- Timestamp:
- 10/21/2025 12:07:16 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-bind.php
r58321 r61020 399 399 $this->assertSame( true, $p->get_attribute( 'id' ) ); 400 400 } 401 402 /** 403 * Tests ignores unique IDs in bind directive. 404 * 405 * @ticket 64106 406 * 407 * @covers ::process_directives 408 */ 409 public function test_wp_bind_ignores_unique_ids() { 410 $html = '<div data-wp-bind--id="myPlugin::state.trueValue"></div>'; 411 list($p) = $this->process_directives( $html ); 412 $this->assertSame( true, $p->get_attribute( 'id' ) ); 413 414 $html = '<div data-wp-bind--id---unique-id="myPlugin::state.trueValue"></div>'; 415 list($p) = $this->process_directives( $html ); 416 $this->assertNull( $p->get_attribute( 'id' ) ); 417 $this->assertNull( $p->get_attribute( 'id---unique-id' ) ); 418 } 401 419 }
Note: See TracChangeset
for help on using the changeset viewer.