Skip to content

Commit

Permalink
Remove tests of irrelevant behavior
Browse files Browse the repository at this point in the history
Trimmed leading whitespace in the classname list is not significant.
Remove tests for this behavior.
  • Loading branch information
sirreal committed Jul 15, 2024
1 parent caa9a98 commit ae7ccc7
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2875,35 +2875,4 @@ public function insert_after( $new_html ) {
'Should have properly applied the update from in front of the cursor.'
);
}

/**
* @ticket TBD
*
* @covers ::remove_class
*/
public function test_remove_class_removes_leading_white_space() {
$processor = new WP_HTML_Tag_Processor( '<div class="remove keep">' );
$processor->next_tag();
$processor->remove_class( 'remove' );
$this->assertSame(
'<div class="keep">',
$processor->get_updated_html(),
'::remove_class did not correctly clean whitespace from removed class.'
);
}
/**
* @ticket TBD
*
* @covers ::remove_class
*/
public function test_remove_class_maintains_trailing_white_space() {
$processor = new WP_HTML_Tag_Processor( '<div class="keep remove">' );
$processor->next_tag();
$processor->remove_class( 'remove' );
$this->assertSame(
'<div class="keep">',
$processor->get_updated_html(),
'::remove_class did not correctly clean whitespace from removed class.'
);
}
}

0 comments on commit ae7ccc7

Please sign in to comment.