InstalledTest.php 636 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Tests\Feature;
  3. use Tests\TestCase;
  4. use Illuminate\Foundation\Testing\RefreshDatabase;
  5. use Illuminate\Foundation\Testing\WithoutMiddleware;
  6. class InstalledTest extends TestCase
  7. {
  8. /** @test */
  9. public function landing_page()
  10. {
  11. $response = $this->get('/');
  12. $response->assertSeeText('Image Sharing for Everyone');
  13. }
  14. /** @test */
  15. public function nodeinfo_api()
  16. {
  17. $response = $this->get('/.well-known/nodeinfo');
  18. $response->assertJson([
  19. 'links' => [
  20. ['rel' => 'http://nodeinfo.diaspora.software/ns/schema/2.0'],
  21. ], ]);
  22. }
  23. }