Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Jan 26, 2022
1 parent 156ef81 commit 0d153fb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/page-scanner/tests/LinkedDocsScannerTest.php
Expand Up @@ -20,14 +20,15 @@ public function testIt()

$errors = $linkedDocsScanner->scan($this->getPage(), file_get_contents(__DIR__.'/data/page.html'));

$this->assertSame(
[
"<code>https://localhost.dev/feed.xml</code> unreacheable - Couldn't resolve host name",
"<code>https://localhost.dev/</code> unreacheable - Couldn't resolve host name",
'<code>#install</code> target not found',
],
\array_slice($errors, 0, 3)
);
$knowedErrors = [
"<code>https://localhost.dev/feed.xml</code> unreacheable - Couldn't resolve host name",
"<code>https://localhost.dev/</code> unreacheable - Couldn't resolve host name",
'<code>#install</code> target not found',
];

foreach ($knowedErrors as $error) {
$this->assertContains($error, $errors);
}
}

public function getPage(): PageInterface
Expand Down

0 comments on commit 0d153fb

Please sign in to comment.