Rename the tests to pass phpcs checks
This commit is contained in:
parent
3946e9aac4
commit
d5bbed1eac
52 changed files with 1329 additions and 1062 deletions
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Tests\TestCase;
|
||||
|
@ -9,38 +11,41 @@ class FeedsTest extends TestCase
|
|||
/**
|
||||
* Test the blog RSS feed.
|
||||
*
|
||||
* @return void
|
||||
* @test
|
||||
*/
|
||||
public function test_blog_rss_feed()
|
||||
public function blogRssFeedIsPresent(): void
|
||||
{
|
||||
$response = $this->get('/blog/feed.rss');
|
||||
$response->assertHeader('Content-Type', 'application/rss+xml; charset=utf-8');
|
||||
$response->assertOk();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the notes RSS feed.
|
||||
*
|
||||
* @return void
|
||||
* @test
|
||||
*/
|
||||
public function test_notes_rss_feed()
|
||||
public function notesRssFeedIsPresent(): void
|
||||
{
|
||||
$response = $this->get('/notes/feed.rss');
|
||||
$response->assertHeader('Content-Type', 'application/rss+xml; charset=utf-8');
|
||||
$response->assertOk();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the blog RSS feed.
|
||||
*
|
||||
* @return void
|
||||
* @test
|
||||
*/
|
||||
public function test_blog_atom_feed()
|
||||
public function blogAtomFeedIsPresent(): void
|
||||
{
|
||||
$response = $this->get('/blog/feed.atom');
|
||||
$response->assertHeader('Content-Type', 'application/atom+xml; charset=utf-8');
|
||||
$response->assertOk();
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function blog_jf2_feed()
|
||||
public function blogJf2FeedIsPresent(): void
|
||||
{
|
||||
$response = $this->get('/blog/feed.jf2');
|
||||
$response->assertHeader('Content-Type', 'application/jf2feed+json');
|
||||
|
@ -63,38 +68,41 @@ class FeedsTest extends TestCase
|
|||
/**
|
||||
* Test the notes RSS feed.
|
||||
*
|
||||
* @return void
|
||||
* @test
|
||||
*/
|
||||
public function test_notes_atom_feed()
|
||||
public function notesAtomFeedIsPresent(): void
|
||||
{
|
||||
$response = $this->get('/notes/feed.atom');
|
||||
$response->assertHeader('Content-Type', 'application/atom+xml; charset=utf-8');
|
||||
$response->assertOk();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the blog JSON feed.
|
||||
*
|
||||
* @return void
|
||||
* @test
|
||||
*/
|
||||
public function test_blog_json_feed()
|
||||
public function blogJsonFeedIsPresent(): void
|
||||
{
|
||||
$response = $this->get('/blog/feed.json');
|
||||
$response->assertHeader('Content-Type', 'application/json');
|
||||
$response->assertOk();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the notes JSON feed.
|
||||
*
|
||||
* @return void
|
||||
* @test
|
||||
*/
|
||||
public function test_notes_json_feed()
|
||||
public function notesJsonFeedIsPresent(): void
|
||||
{
|
||||
$response = $this->get('/notes/feed.json');
|
||||
$response->assertHeader('Content-Type', 'application/json');
|
||||
$response->assertOk();
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function notes_jf2_feed()
|
||||
public function notesJf2FeedIsPresent(): void
|
||||
{
|
||||
$response = $this->get('/notes/feed.jf2');
|
||||
$response->assertHeader('Content-Type', 'application/jf2feed+json');
|
||||
|
@ -118,9 +126,9 @@ class FeedsTest extends TestCase
|
|||
* Each JSON feed item must have one of `content_text` or `content_html`,
|
||||
* and whichever one they have can’t be `null`.
|
||||
*
|
||||
* @return void
|
||||
* @test
|
||||
*/
|
||||
public function test_json_feed_has_one_content_attribute_and_it_isnt_null()
|
||||
public function jsonFeedsHaveRequiredAttributes(): void
|
||||
{
|
||||
$response = $this->get('/notes/feed.json');
|
||||
$data = json_decode($response->content());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue