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,18 +1,21 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Tests\TestCase;
|
||||
use Tests\TestToken;
|
||||
use Lcobucci\JWT\Builder;
|
||||
use Lcobucci\JWT\Signer\Hmac\Sha256;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class OwnYourGramTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions, TestToken;
|
||||
use DatabaseTransactions;
|
||||
use TestToken;
|
||||
|
||||
public function test_ownyourgram_post()
|
||||
/** @test */
|
||||
public function postingInstagramUrlSavesMediaPath(): void
|
||||
{
|
||||
$response = $this->json(
|
||||
'POST',
|
||||
|
@ -21,10 +24,13 @@ class OwnYourGramTest extends TestCase
|
|||
'type' => ['h-entry'],
|
||||
'properties' => [
|
||||
'content' => ['How beautiful are the plates and chopsticks'],
|
||||
'published' => [\Carbon\Carbon::now()->toIso8601String()],
|
||||
'published' => [Carbon::now()->toIso8601String()],
|
||||
'location' => ['geo:53.802419075834,-1.5431942917637'],
|
||||
'syndication' => ['https://www.instagram.com/p/BVC_nVTBFfi/'],
|
||||
'photo' => ['https://scontent-sjc2-1.cdninstagram.com/t51.2885-15/e35/18888604_425332491185600_326487281944756224_n.jpg'],
|
||||
'photo' => [
|
||||
// phpcs:ignore Generic.Files.LineLength.TooLong
|
||||
'https://scontent-sjc2-1.cdninstagram.com/t51.2885-15/e35/18888604_425332491185600_326487281944756224_n.jpg'
|
||||
],
|
||||
],
|
||||
],
|
||||
['HTTP_Authorization' => 'Bearer ' . $this->getToken()]
|
||||
|
@ -34,6 +40,7 @@ class OwnYourGramTest extends TestCase
|
|||
'response' => 'created'
|
||||
]);
|
||||
$this->assertDatabaseHas('media_endpoint', [
|
||||
// phpcs:ignore Generic.Files.LineLength.TooLong
|
||||
'path' => 'https://scontent-sjc2-1.cdninstagram.com/t51.2885-15/e35/18888604_425332491185600_326487281944756224_n.jpg'
|
||||
]);
|
||||
$this->assertDatabaseHas('notes', [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue