Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Block Bindings Processor: Tweak test to break with current implementa…
…tion
  • Loading branch information
ockham committed Aug 20, 2025
commit c6acfadd71eb97e57fbe6a390bb98a96989278b4
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ public function test_replace_rich_text_and_seek() {
$this->assertTrue( $processor->replace_rich_text( '<strong>New</strong> image caption' ) );

$processor->seek( 'image' );
$processor->add_class( 'extra-img-class' );

$this->assertEquals(
$figure_opener .
$img .
'<img src="breakfast.jpg" alt="" class="wp-image-1 extra-img-class"/>' .
'<figcaption class="wp-element-caption"><strong>New</strong> image caption</figcaption>' .
$figure_closer,
$processor->build()
Expand Down