Bit of work to set things up

This commit is contained in:
Lewis Dale committed 2023-03-14 21:08:33 +00:00
1 parent 811f63a207
commit a5e0902366
4 files changed
+30 -22

No files matched your search

+21 -13
View File
@@ -119,9 +119,11 @@ class EndpointTest extends TestCase {
<head>
</head>
<body>
<h1>Some content</h1>
<p>Here's some body content. It <a href="/another/page">contains a url</a>.</p>
<p>I'm liking <a href="$target" class="u-like-of">this post</a>.</p>
<article>
<h1>Some content</h1>
<p>Here's some body content. It <a href="/another/page">contains a url</a>.</p>
<p>I'm liking <a href="$target" class="u-like-of">this post</a>.</p>
</article>
</body>
</html>
XML;
@@ -160,9 +162,11 @@ class EndpointTest extends TestCase {
<head>
</head>
<body>
<h1>Some content</h1>
<p>Here's some body content. It <a href="/another/page">contains a url</a>.</p>
<p>I'm writing about <a href="$target" class="my-link">this post</a>.</p>
<article class="h-entry">
<h1>Some content</h1>
<p>Here's some body content. It <a href="/another/page">contains a url</a>.</p>
<p>I'm writing about <a href="$target" class="my-link">this post</a>.</p>
</article>
</body>
</html>
XML;
@@ -200,9 +204,11 @@ class EndpointTest extends TestCase {
<head>
</head>
<body>
<h1>Some content</h1>
<p>Here's some body content. It <a href="/another/page">contains a url</a>.</p>
<p>I'm writing about <a href="$target" class="u-in-reply-to">this post</a>.</p>
<article class="h-entry">
<h1>Some content</h1>
<p>Here's some body content. It <a href="/another/page">contains a url</a>.</p>
<p>I'm writing about <a href="$target" class="u-in-reply-to">this post</a>.</p>
</article>
</body>
</html>
XML;
@@ -240,9 +246,11 @@ class EndpointTest extends TestCase {
<head>
</head>
<body>
<h1>Some content</h1>
<p>Here's some body content. It <a href="/another/page">contains a url</a>.</p>
<p>I'm writing about <a href="$target" class="u-repost-of">this post</a>.</p>
<article="h-entry">
<h1>Some content</h1>
<p>Here's some body content. It <a href="/another/page">contains a url</a>.</p>
<p>I'm writing about <a href="$target" class="u-repost-of">this post</a>.</p>
</article>
</body>
</html>
XML;
@@ -265,7 +273,7 @@ class EndpointTest extends TestCase {
$mockGateway->expects($this->once())
->method('save')
->with($this->objectContains('type', MentionType::Repost));
$endpoint = new Endpoint($mockClient, $mockGateway);
$endpoint->receiveWebmention($source, $target);
}