Laravel Pint fixes
This commit is contained in:
parent
7a58287b34
commit
126bb29ae2
50 changed files with 299 additions and 299 deletions
|
@ -14,7 +14,7 @@ class AddClientToDatabaseJobTest extends TestCase
|
|||
use RefreshDatabase;
|
||||
|
||||
#[Test]
|
||||
public function clientIsAddedToDatabaseByJob(): void
|
||||
public function client_is_added_to_database_by_job(): void
|
||||
{
|
||||
$job = new AddClientToDatabase('https://example.org/client');
|
||||
$job->handle();
|
||||
|
|
|
@ -25,7 +25,7 @@ class DownloadWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function htmlIsSavedByJob(): void
|
||||
public function html_is_saved_by_job(): void
|
||||
{
|
||||
$this->assertFileDoesNotExist(storage_path('HTML/https'));
|
||||
$source = 'https://example.org/reply/1';
|
||||
|
@ -53,7 +53,7 @@ class DownloadWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function htmlAndBackupSavedByJob(): void
|
||||
public function html_and_backup_saved_by_job(): void
|
||||
{
|
||||
$this->assertFileDoesNotExist(storage_path('HTML/https'));
|
||||
$source = 'https://example.org/reply/1';
|
||||
|
@ -88,7 +88,7 @@ class DownloadWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function indexHtmlFileIsSavedByJobForUrlsEndingWithSlash(): void
|
||||
public function index_html_file_is_saved_by_job_for_urls_ending_with_slash(): void
|
||||
{
|
||||
$this->assertFileDoesNotExist(storage_path('HTML/https'));
|
||||
$source = 'https://example.org/reply-one/';
|
||||
|
|
|
@ -19,7 +19,7 @@ class ProcessBookmarkJobTest extends TestCase
|
|||
use RefreshDatabase;
|
||||
|
||||
#[Test]
|
||||
public function archiveLinkIsSavedByJobAndScreenshotJobIsQueued(): void
|
||||
public function archive_link_is_saved_by_job_and_screenshot_job_is_queued(): void
|
||||
{
|
||||
Queue::fake();
|
||||
|
||||
|
@ -40,7 +40,7 @@ class ProcessBookmarkJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function archiveLinkSavedAsNullWhenExceptionThrown(): void
|
||||
public function archive_link_saved_as_null_when_exception_thrown(): void
|
||||
{
|
||||
Queue::fake();
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ use Tests\TestCase;
|
|||
class ProcessMediaJobTest extends TestCase
|
||||
{
|
||||
#[Test]
|
||||
public function nonMediaFilesAreNotSaved(): void
|
||||
public function non_media_files_are_not_saved(): void
|
||||
{
|
||||
$manager = app()->make(ImageManager::class);
|
||||
Storage::disk('local')->put('media/file.txt', 'This is not an image');
|
||||
|
@ -24,7 +24,7 @@ class ProcessMediaJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function smallImagesAreNotResized(): void
|
||||
public function small_images_are_not_resized(): void
|
||||
{
|
||||
$manager = app()->make(ImageManager::class);
|
||||
Storage::disk('local')->put('media/aaron.png', file_get_contents(__DIR__ . '/../../aaron.png'));
|
||||
|
@ -39,7 +39,7 @@ class ProcessMediaJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function largeImagesHaveSmallerImagesCreated(): void
|
||||
public function large_images_have_smaller_images_created(): void
|
||||
{
|
||||
$manager = app()->make(ImageManager::class);
|
||||
Storage::disk('local')->put('media/test-image.jpg', file_get_contents(__DIR__.'/../../test-image.jpg'));
|
||||
|
|
|
@ -34,7 +34,7 @@ class ProcessWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function failureGettingWebmentionThrowsAnException(): void
|
||||
public function failure_getting_webmention_throws_an_exception(): void
|
||||
{
|
||||
$this->expectException(RemoteContentNotFoundException::class);
|
||||
|
||||
|
@ -53,7 +53,7 @@ class ProcessWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function newWebmentionGetsSavedByJob(): void
|
||||
public function new_webmention_gets_saved_by_job(): void
|
||||
{
|
||||
Queue::fake();
|
||||
|
||||
|
@ -85,7 +85,7 @@ class ProcessWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function existingWebmentionGetsUpdatedByJob(): void
|
||||
public function existing_webmention_gets_updated_by_job(): void
|
||||
{
|
||||
Queue::fake();
|
||||
|
||||
|
@ -122,7 +122,7 @@ class ProcessWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function webmentionReplyGetsDeletedWhenReplyToValueChanges(): void
|
||||
public function webmention_reply_gets_deleted_when_reply_to_value_changes(): void
|
||||
{
|
||||
$parser = new Parser;
|
||||
|
||||
|
@ -159,7 +159,7 @@ class ProcessWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function webmentionLikeGetsDeletedWhenLikeOfValueChanges(): void
|
||||
public function webmention_like_gets_deleted_when_like_of_value_changes(): void
|
||||
{
|
||||
$parser = new Parser;
|
||||
|
||||
|
@ -196,7 +196,7 @@ class ProcessWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function webmentionRepostGetsDeletedWhenRepostOfValueChanges(): void
|
||||
public function webmention_repost_gets_deleted_when_repost_of_value_changes(): void
|
||||
{
|
||||
$parser = new Parser;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ class SaveProfileImageJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function authorshipAlgorithmReturnsNullOnException(): void
|
||||
public function authorship_algorithm_returns_null_on_exception(): void
|
||||
{
|
||||
$mf = ['items' => []];
|
||||
$authorship = $this->createMock(Authorship::class);
|
||||
|
@ -38,7 +38,7 @@ class SaveProfileImageJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function weDoNotProcessTwitterImages(): void
|
||||
public function we_do_not_process_twitter_images(): void
|
||||
{
|
||||
$mf = ['items' => []];
|
||||
$author = [
|
||||
|
@ -56,7 +56,7 @@ class SaveProfileImageJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function remoteAuthorImagesAreSavedLocally(): void
|
||||
public function remote_author_images_are_saved_locally(): void
|
||||
{
|
||||
$mock = new MockHandler([
|
||||
new Response(200, ['Content-Type' => 'image/jpeg'], 'fake jpeg image'),
|
||||
|
@ -81,7 +81,7 @@ class SaveProfileImageJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function localDefaultAuthorImageIsUsedAsFallback(): void
|
||||
public function local_default_author_image_is_used_as_fallback(): void
|
||||
{
|
||||
$mock = new MockHandler([
|
||||
new Response(404),
|
||||
|
@ -109,7 +109,7 @@ class SaveProfileImageJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function weGetUrlFromPhotoObjectIfAltTextIsProvided(): void
|
||||
public function we_get_url_from_photo_object_if_alt_text_is_provided(): void
|
||||
{
|
||||
$mock = new MockHandler([
|
||||
new Response(200, ['Content-Type' => 'image/jpeg'], 'fake jpeg image'),
|
||||
|
@ -137,7 +137,7 @@ class SaveProfileImageJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function useFirstUrlIfMultipleHomepagesAreProvided(): void
|
||||
public function use_first_url_if_multiple_homepages_are_provided(): void
|
||||
{
|
||||
$mock = new MockHandler([
|
||||
new Response(200, ['Content-Type' => 'image/jpeg'], 'fake jpeg image'),
|
||||
|
|
|
@ -21,7 +21,7 @@ class SaveScreenshotJobTest extends TestCase
|
|||
use RefreshDatabase;
|
||||
|
||||
#[Test]
|
||||
public function screenshotIsSavedByJob(): void
|
||||
public function screenshot_is_saved_by_job(): void
|
||||
{
|
||||
Storage::fake('public');
|
||||
$guzzleMock = new MockHandler([
|
||||
|
@ -86,7 +86,7 @@ class SaveScreenshotJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function screenshotJobHandlesUnfinishedTasks(): void
|
||||
public function screenshot_job_handles_unfinished_tasks(): void
|
||||
{
|
||||
Storage::fake('public');
|
||||
$guzzleMock = new MockHandler([
|
||||
|
|
|
@ -16,7 +16,7 @@ use Tests\TestCase;
|
|||
class SendWebMentionJobTest extends TestCase
|
||||
{
|
||||
#[Test]
|
||||
public function discoverWebmentionEndpointOnOwnDomain(): void
|
||||
public function discover_webmention_endpoint_on_own_domain(): void
|
||||
{
|
||||
$note = new Note;
|
||||
$job = new SendWebMentions($note);
|
||||
|
@ -25,7 +25,7 @@ class SendWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function discoverWebmentionEndpointFromHeaderLinks(): void
|
||||
public function discover_webmention_endpoint_from_header_links(): void
|
||||
{
|
||||
$url = 'https://example.org/webmention';
|
||||
$mock = new MockHandler([
|
||||
|
@ -40,7 +40,7 @@ class SendWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function discoverWebmentionEndpointFromHtmlLinkTags(): void
|
||||
public function discover_webmention_endpoint_from_html_link_tags(): void
|
||||
{
|
||||
$html = '<link rel="webmention" href="https://example.org/webmention">';
|
||||
$mock = new MockHandler([
|
||||
|
@ -58,7 +58,7 @@ class SendWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function discoverWebmentionEndpointFromLegacyHtmlMarkup(): void
|
||||
public function discover_webmention_endpoint_from_legacy_html_markup(): void
|
||||
{
|
||||
$html = '<link rel="http://webmention.org/" href="https://example.org/webmention">';
|
||||
$mock = new MockHandler([
|
||||
|
@ -76,14 +76,14 @@ class SendWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function ensureEmptyNoteDoesNotTriggerAnyActions(): void
|
||||
public function ensure_empty_note_does_not_trigger_any_actions(): void
|
||||
{
|
||||
$job = new SendWebMentions(new Note);
|
||||
$this->assertNull($job->handle());
|
||||
}
|
||||
|
||||
#[Test]
|
||||
public function weResolveRelativeUris(): void
|
||||
public function we_resolve_relative_uris(): void
|
||||
{
|
||||
$uri = '/blog/post';
|
||||
$base = 'https://example.org/';
|
||||
|
@ -92,7 +92,7 @@ class SendWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function weSendAWebmentionForANote(): void
|
||||
public function we_send_a_webmention_for_a_note(): void
|
||||
{
|
||||
$html = '<link rel="http://webmention.org/" href="https://example.org/webmention">';
|
||||
$mock = new MockHandler([
|
||||
|
@ -112,7 +112,7 @@ class SendWebMentionJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function linksInNotesCanNotSupportWebmentions(): void
|
||||
public function links_in_notes_can_not_support_webmentions(): void
|
||||
{
|
||||
$mock = new MockHandler([
|
||||
// URLs with commas currently break the parse function I’m using
|
||||
|
|
|
@ -19,7 +19,7 @@ class SyndicateNoteToBlueskyJobTest extends TestCase
|
|||
use RefreshDatabase;
|
||||
|
||||
#[Test]
|
||||
public function weSyndicateNotesToBluesky(): void
|
||||
public function we_syndicate_notes_to_bluesky(): void
|
||||
{
|
||||
config(['bridgy.bluesky_token' => 'test']);
|
||||
$faker = Factory::create();
|
||||
|
@ -40,7 +40,7 @@ class SyndicateNoteToBlueskyJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function weSyndicateTheOriginalMarkdownToBluesky(): void
|
||||
public function we_syndicate_the_original_markdown_to_bluesky(): void
|
||||
{
|
||||
config(['bridgy.bluesky_token' => 'test']);
|
||||
$faker = Factory::create();
|
||||
|
|
|
@ -19,7 +19,7 @@ class SyndicateNoteToMastodonJobTest extends TestCase
|
|||
use RefreshDatabase;
|
||||
|
||||
#[Test]
|
||||
public function weSyndicateNotesToMastodon(): void
|
||||
public function we_syndicate_notes_to_mastodon(): void
|
||||
{
|
||||
config(['bridgy.mastodon_token' => 'test']);
|
||||
$faker = Factory::create();
|
||||
|
@ -40,7 +40,7 @@ class SyndicateNoteToMastodonJobTest extends TestCase
|
|||
}
|
||||
|
||||
#[Test]
|
||||
public function weSyndicateTheOriginalMarkdown(): void
|
||||
public function we_syndicate_the_original_markdown(): void
|
||||
{
|
||||
config(['bridgy.mastodon_token' => 'test']);
|
||||
$faker = Factory::create();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue