Skip to content

Commit

Permalink
Clarify how the test works
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 26, 2024
1 parent 9cc70f6 commit 97c6e63
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/framework/tests/Feature/IncludesFacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,15 @@ public function testBladeReturnsRenderedDefaultValueWhenNotFound()

public function testTorchlightAttributionIsNotInjectedToMarkdownPartials()
{
$this->file('resources/includes/without-torchlight.md', 'Syntax highlighted by torchlight.dev');
$placeholder = 'Syntax highlighted by torchlight.dev';
$this->file('resources/includes/without-torchlight.md', $placeholder);

$this->assertSame(
'<p>Syntax highlighted by torchlight.dev</p>',
Includes::markdown('without-torchlight.md')
);
$rendered = Includes::markdown('without-torchlight.md');

$attribution ='Syntax highlighting by <a href="https://torchlight.dev/" rel="noopener nofollow">Torchlight.dev</a>';

$this->assertStringNotContainsString($attribution, $rendered);
$this->assertSame("<p>$placeholder</p>", $rendered);
}

public function testAdvancedMarkdownDocumentIsCompiledToHtml()
Expand Down

0 comments on commit 97c6e63

Please sign in to comment.