Update Laravel Pint
This commit is contained in:
parent
8d93a5ac7a
commit
7ee5bb00ba
13 changed files with 78 additions and 78 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue