chore: Refactor configuration files based on Laravel 10 skeleton

This commit is contained in:
Jonny Barnes 2023-06-09 18:31:53 +01:00
parent 3f78d5118a
commit bebbfec510
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
35 changed files with 205 additions and 284 deletions

View file

@ -65,7 +65,7 @@ class FeedsTest extends TestCase
'author' => [
'type' => 'card',
'name' => config('user.displayname'),
'url' => config('app.longurl'),
'url' => config('url.longurl'),
],
'children' => [[
'type' => 'entry',
@ -126,7 +126,7 @@ class FeedsTest extends TestCase
'author' => [
'type' => 'card',
'name' => config('user.displayname'),
'url' => config('app.longurl'),
'url' => config('url.longurl'),
],
'children' => [[
'type' => 'entry',

View file

@ -11,28 +11,28 @@ class ShortURLsControllerTest extends TestCase
/** @test */
public function shortDomainRedirectsToLongDomain(): void
{
$response = $this->get('https://' . config('app.shorturl'));
$response = $this->get('https://' . config('url.shorturl'));
$response->assertRedirect(config('app.url'));
}
/** @test */
public function shortDomainSlashAtRedirectsToTwitter(): void
{
$response = $this->get('https://' . config('app.shorturl') . '/@');
$response = $this->get('https://' . config('url.shorturl') . '/@');
$response->assertRedirect('https://twitter.com/jonnybarnes');
}
/** @test */
public function shortDomainSlashTRedirectsToLongDomainSlashNotes(): void
{
$response = $this->get('https://' . config('app.shorturl') . '/t/E');
$response = $this->get('https://' . config('url.shorturl') . '/t/E');
$response->assertRedirect(config('app.url') . '/notes/E');
}
/** @test */
public function shortDomainSlashBRedirectsToLongDomainSlashBlog(): void
{
$response = $this->get('https://' . config('app.shorturl') . '/b/1');
$response = $this->get('https://' . config('url.shorturl') . '/b/1');
$response->assertRedirect(config('app.url') . '/blog/s/1');
}
}