Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Attia-Ahmed committed Feb 25, 2022
1 parent 6a79ecb commit 2a85586
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/Database/DatabaseEloquentWithCastsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

namespace Illuminate\Tests\Database;

use PHPUnit\Framework\TestCase;
use Illuminate\Database\Capsule\Manager as DB;
use Illuminate\Database\Eloquent\Model as Eloquent;
use PHPUnit\Framework\TestCase;

class DatabaseEloquentWithCastsTest extends TestCase
{

protected function setUp(): void
{
parent::setUp();
Expand Down Expand Up @@ -47,7 +46,6 @@ public function testWithFirstOrNew()

$this->assertSame('07:30', $time1->time);
$this->assertSame($time1->time, $time2->time);

}

public function testWithFirstOrCreate()
Expand All @@ -59,7 +57,6 @@ public function testWithFirstOrCreate()
->firstOrCreate(['time' => '07:30']);

$this->assertSame($time1->id, $time2->id);

}

/**
Expand All @@ -83,14 +80,11 @@ protected function schema()
}
}


class Time extends Eloquent
{
protected $guarded = [];

protected $casts = [
"time" => "datetime"
'time' => 'datetime'
];

}

}

0 comments on commit 2a85586

Please sign in to comment.