mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
[TESTS] Add some basic tests for ModelsCommand (#869)
* tests: add abstract class for all database related tests * tests: add abstract class for all ModelsCommand related tests * tests: add GenerateBasicPhpdoc test * tests: add CustomDate test * tests: remove MITM abstract TestCaseDatabase, not useful here * tests: skip new ModelsCommand test on Laravel < 6 * tests: remove CarbonImmutable checked Since we decided to skip for Laravel < 6.0 anyway, it's always present
This commit is contained in:
committed by
Barry vd. Heuvel
parent
d3b24ffeae
commit
d9a731daba
@@ -0,0 +1,15 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CustomDatesTable extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('custom_dates', function (Blueprint $table) {
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class PostsTable extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('posts', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('title');
|
||||
$table->string('body')->nullable();
|
||||
$table->boolean('visible')->default('true');
|
||||
$table->timestampTz('publicated_at');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user