mirror of https://github.com/pixelfed/pixelfed
Merge branch 'dev' of https://github.com/dansup/pixelfed into dev
commit
83c6f4c615
@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
class UpdateSettingsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('user_settings', function (Blueprint $table) {
|
||||||
|
$table->boolean('show_profile_followers')->default(true);
|
||||||
|
$table->boolean('show_profile_follower_count')->default(true);
|
||||||
|
$table->boolean('show_profile_following')->default(true);
|
||||||
|
$table->boolean('show_profile_following_count')->default(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
$table->dropColumn('show_profile_followers');
|
||||||
|
$table->dropColumn('show_profile_follower_count');
|
||||||
|
$table->dropColumn('show_profile_following');
|
||||||
|
$table->dropColumn('show_profile_following_count');
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
@ -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 New Issue