Skip to content

Commit

Permalink
Always compare just the HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Dec 29, 2024
1 parent 81d3ba2 commit a35bdc9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/functional/Delimiter/DelimiterProcessingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testAsymmetricDelimiterProcessing(string $input, string $expecte

$converter = new MarkdownConverter($e);

$this->assertEquals($expected, $converter->convert($input));
$this->assertEquals($expected, $converter->convert($input)->getContent());
}

/**
Expand Down
8 changes: 4 additions & 4 deletions tests/functional/Extension/Mention/MentionExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testNoConfig(): void

$converter = new MarkdownConverter($environment);

$this->assertEquals($expected, $converter->convert($input));
$this->assertEquals($expected, $converter->convert($input)->getContent());
}

public function testConfigStringGenerator(): void
Expand Down Expand Up @@ -72,7 +72,7 @@ public function testConfigStringGenerator(): void

$converter = new MarkdownConverter($environment);

$this->assertEquals($expected, $converter->convert($input));
$this->assertEquals($expected, $converter->convert($input)->getContent());
}

public function testConfigCallableGenerator(): void
Expand Down Expand Up @@ -104,7 +104,7 @@ public function testConfigCallableGenerator(): void

$converter = new MarkdownConverter($environment);

$this->assertEquals($expected, $converter->convert($input));
$this->assertEquals($expected, $converter->convert($input)->getContent());
}

public function testConfigObjectImplementingMentionGeneratorInterface(): void
Expand Down Expand Up @@ -139,7 +139,7 @@ public function generateMention(Mention $mention): ?AbstractInline

$converter = new MarkdownConverter($environment);

$this->assertEquals($expected, $converter->convert($input));
$this->assertEquals($expected, $converter->convert($input)->getContent());
}

public function testConfigUnknownGenerator(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/MaximumNestingLevelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function testThatWeCanHitTheLimit(): void
</blockquote>
';

$this->assertEquals($expected, $converter->convert($markdown));
$this->assertEquals($expected, $converter->convert($markdown)->getContent());
}

public function testThatWeCannotExceedTheLimit(): void
Expand All @@ -48,6 +48,6 @@ public function testThatWeCannotExceedTheLimit(): void
</blockquote>
';

$this->assertEquals($expected, $converter->convert($markdown));
$this->assertEquals($expected, $converter->convert($markdown)->getContent());
}
}
2 changes: 1 addition & 1 deletion tests/unit/Extension/TaskList/TaskListExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ public function testTaskLists(): void

$converter = new MarkdownConverter($environment);

$this->assertEquals($expected, $converter->convert($input));
$this->assertEquals($expected, $converter->convert($input)->getContent());
}
}

0 comments on commit a35bdc9

Please sign in to comment.