Fix files with Laravel Pint
This commit is contained in:
parent
c714457604
commit
e36f15d391
116 changed files with 409 additions and 378 deletions
|
@ -43,7 +43,7 @@ class ArticlesTest extends TestCase
|
|||
$this->actingAs($user)
|
||||
->post('/admin/blog', [
|
||||
'title' => 'Test Title',
|
||||
'main' => 'Article content'
|
||||
'main' => 'Article content',
|
||||
]);
|
||||
$this->assertDatabaseHas('articles', ['title' => 'Test Title']);
|
||||
}
|
||||
|
@ -63,8 +63,8 @@ class ArticlesTest extends TestCase
|
|||
|
||||
$this->actingAs($user)
|
||||
->post('/admin/blog', [
|
||||
'title' => 'Uploaded Article',
|
||||
'article' => $file,
|
||||
'title' => 'Uploaded Article',
|
||||
'article' => $file,
|
||||
]);
|
||||
|
||||
$this->assertDatabaseHas('articles', [
|
||||
|
|
|
@ -41,11 +41,11 @@ class ClientsTest extends TestCase
|
|||
$this->actingAs($user)
|
||||
->post('/admin/clients', [
|
||||
'client_name' => 'Micropublish',
|
||||
'client_url' => 'https://micropublish.net'
|
||||
'client_url' => 'https://micropublish.net',
|
||||
]);
|
||||
$this->assertDatabaseHas('clients', [
|
||||
'client_name' => 'Micropublish',
|
||||
'client_url' => 'https://micropublish.net'
|
||||
'client_url' => 'https://micropublish.net',
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Tests\Feature\Admin;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\Contact;
|
||||
use App\Models\User;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Handler\MockHandler;
|
||||
use GuzzleHttp\HandlerStack;
|
||||
|
@ -58,7 +58,7 @@ class ContactsTest extends TestCase
|
|||
$this->assertDatabaseHas('contacts', [
|
||||
'name' => 'Fred Bloggs',
|
||||
'nick' => 'fred',
|
||||
'homepage' => 'https://fred.blog/gs'
|
||||
'homepage' => 'https://fred.blog/gs',
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ class ContactsTest extends TestCase
|
|||
/** @test */
|
||||
public function adminCanTriggerRetrievalOfRemoteAvatar(): void
|
||||
{
|
||||
$html = <<<HTML
|
||||
$html = <<<'HTML'
|
||||
<div class="h-card">
|
||||
<img class="u-photo" alt="" src="http://tantek.com/tantek.png">
|
||||
</div>
|
||||
|
@ -181,7 +181,7 @@ class ContactsTest extends TestCase
|
|||
/** @test */
|
||||
public function gettingRemoteAvatarFailsGracefullyWithRemoteError(): void
|
||||
{
|
||||
$html = <<<HTML
|
||||
$html = <<<'HTML'
|
||||
<div class="h-card">
|
||||
<img class="u-photo" src="http://tantek.com/tantek.png">
|
||||
</div>
|
||||
|
|
|
@ -43,10 +43,10 @@ class LikesTest extends TestCase
|
|||
|
||||
$this->actingAs($user)
|
||||
->post('/admin/likes', [
|
||||
'like_url' => 'https://example.com'
|
||||
'like_url' => 'https://example.com',
|
||||
]);
|
||||
$this->assertDatabaseHas('likes', [
|
||||
'url' => 'https://example.com'
|
||||
'url' => 'https://example.com',
|
||||
]);
|
||||
Queue::assertPushed(ProcessLike::class);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue