mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update tests
This commit is contained in:
parent
814b959c3f
commit
b3827566a2
2 changed files with 29 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Tests\TestCase;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A basic test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testBasicTest()
|
||||
{
|
||||
$response = $this->get('/');
|
||||
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
}
|
29
tests/Feature/InstalledTest.php
Normal file
29
tests/Feature/InstalledTest.php
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Tests\TestCase;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
|
||||
class InstalledTest extends TestCase
|
||||
{
|
||||
public function testLandingTest()
|
||||
{
|
||||
$response = $this->get('/');
|
||||
$response
|
||||
->assertStatus(200)
|
||||
->assertSeeText('Image Sharing for Everyone');
|
||||
}
|
||||
|
||||
public function testNodeinfoTest()
|
||||
{
|
||||
$response = $this->get('/.well-known/nodeinfo');
|
||||
$response
|
||||
->assertStatus(200)
|
||||
->assertJson([
|
||||
"links" => [
|
||||
["rel" => "http://nodeinfo.diaspora.software/ns/schema/2.0"]
|
||||
]]);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue