Laravel Pint fixes
Some checks failed
PHP Unit / PHPUnit test suite (pull_request) Has been cancelled
Laravel Pint / Laravel Pint (pull_request) Has been cancelled

This commit is contained in:
Jonny Barnes 2025-04-06 17:25:06 +01:00
parent 7a58287b34
commit 126bb29ae2
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
50 changed files with 299 additions and 299 deletions

View file

@ -15,14 +15,14 @@ class ArticlesTest extends TestCase
use RefreshDatabase;
#[Test]
public function articlesPageLoads(): void
public function articles_page_loads(): void
{
$response = $this->get('/blog');
$response->assertViewIs('articles.index');
}
#[Test]
public function singleArticlePageLoads()
public function single_article_page_loads()
{
$article = Article::factory()->create();
$response = $this->get($article->link);
@ -30,7 +30,7 @@ class ArticlesTest extends TestCase
}
#[Test]
public function wrongDateInUrlRedirectsToCorrectDate()
public function wrong_date_in_url_redirects_to_correct_date()
{
$article = Article::factory()->create();
$response = $this->get('/blog/1900/01/' . $article->titleurl);
@ -38,7 +38,7 @@ class ArticlesTest extends TestCase
}
#[Test]
public function oldUrlsWithIdAreRedirected()
public function old_urls_with_id_are_redirected()
{
$article = Article::factory()->create();
$num60Id = resolve(Numbers::class)->numto60($article->id);
@ -47,21 +47,21 @@ class ArticlesTest extends TestCase
}
#[Test]
public function unknownSlugGetsNotFoundResponse()
public function unknown_slug_gets_not_found_response()
{
$response = $this->get('/blog/' . date('Y') . '/' . date('m') . '/unknown-slug');
$response->assertNotFound();
}
#[Test]
public function unknownArticleIdGetsNotFoundResponse()
public function unknown_article_id_gets_not_found_response()
{
$response = $this->get('/blog/s/22');
$response->assertNotFound();
}
#[Test]
public function someUrlsDoNotParseCorrectly(): void
public function some_urls_do_not_parse_correctly(): void
{
$response = $this->get('/blog/feed.js');
$response->assertNotFound();