Update Laravel Pint

This commit is contained in:
Jonny Barnes 2023-04-20 17:34:06 +01:00
parent 8d93a5ac7a
commit 7ee5bb00ba
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
13 changed files with 78 additions and 78 deletions

View file

@ -25,7 +25,7 @@ class ProcessBookmarkJobTest extends TestCase
$bookmark = Bookmark::factory()->create();
$service = $this->createMock(BookmarkService::class);
$service->method('getArchiveLink')
->willReturn('https://web.archive.org/web/1234');
->willReturn('https://web.archive.org/web/1234');
$this->app->instance(BookmarkService::class, $service);
$job = new ProcessBookmark($bookmark);
@ -46,7 +46,7 @@ class ProcessBookmarkJobTest extends TestCase
$bookmark = Bookmark::factory()->create();
$service = $this->createMock(BookmarkService::class);
$service->method('getArchiveLink')
->will($this->throwException(new InternetArchiveException()));
->will($this->throwException(new InternetArchiveException()));
$this->app->instance(BookmarkService::class, $service);
$job = new ProcessBookmark($bookmark);

View file

@ -30,7 +30,7 @@ class SaveProfileImageJobTest extends TestCase
$mf = ['items' => []];
$authorship = $this->createMock(Authorship::class);
$authorship->method('findAuthor')
->will($this->throwException(new AuthorshipParserException()));
->will($this->throwException(new AuthorshipParserException()));
$job = new SaveProfileImage($mf);
$this->assertNull($job->handle($authorship));
@ -48,7 +48,7 @@ class SaveProfileImageJobTest extends TestCase
];
$authorship = $this->createMock(Authorship::class);
$authorship->method('findAuthor')
->willReturn($author);
->willReturn($author);
$job = new SaveProfileImage($mf);
$this->assertNull($job->handle($authorship));
@ -72,7 +72,7 @@ class SaveProfileImageJobTest extends TestCase
];
$authorship = $this->createMock(Authorship::class);
$authorship->method('findAuthor')
->willReturn($author);
->willReturn($author);
$job = new SaveProfileImage($mf);
$job->handle($authorship);
@ -97,7 +97,7 @@ class SaveProfileImageJobTest extends TestCase
];
$authorship = $this->createMock(Authorship::class);
$authorship->method('findAuthor')
->willReturn($author);
->willReturn($author);
$job = new SaveProfileImage($mf);
$job->handle($authorship);

View file

@ -105,11 +105,11 @@ class WebMentionTest extends TestCase
$this->app->instance(Codebird::class, $codebirdMock);
Cache::shouldReceive('has')
->once()
->andReturn(false);
->once()
->andReturn(false);
Cache::shouldReceive('put')
->once()
->andReturn(true);
->once()
->andReturn(true);
$webmention = new WebMention();
$twitterURL = 'https://twitter.com/example';