pixelfed/tests/Feature/InstalledTest.php

28 wiersze
610 B
PHP
Czysty Zwykły widok Historia

2018-08-23 04:30:53 +00:00
<?php
namespace Tests\Feature;
use Tests\TestCase;
2019-01-31 01:39:51 +00:00
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
2018-08-23 04:30:53 +00:00
class InstalledTest extends TestCase
{
2019-01-31 01:39:51 +00:00
/** @test */
public function landing_page()
2018-08-23 04:30:53 +00:00
{
$response = $this->get('/');
2019-03-16 20:07:36 +00:00
$response->assertStatus(200);
2018-08-23 04:30:53 +00:00
}
2019-01-31 01:39:51 +00:00
/** @test */
public function nodeinfo_api()
2018-08-23 04:30:53 +00:00
{
$response = $this->get('/.well-known/nodeinfo');
2019-01-31 01:39:51 +00:00
$response->assertJson([
2018-08-28 03:07:36 +00:00
'links' => [
['rel' => 'http://nodeinfo.diaspora.software/ns/schema/2.0'],
], ]);
2018-08-23 04:30:53 +00:00
}
}