25 lines
782 B
PHP
25 lines
782 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Models;
|
|
|
|
use App\Models\ReimbursementBatch;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class ReimbursementBatchTest extends TestCase
|
|
{
|
|
public function test_model_metadata_is_converted(): void
|
|
{
|
|
$model = new ReimbursementBatch;
|
|
|
|
$this->assertSame('reimbursement_batches', $model->getTable());
|
|
$this->assertSame('id', $model->getKeyName());
|
|
$this->assertSame(false, $model->timestamps);
|
|
$this->assertSame(['title', 'yearly_batch_number', 'status', 'school_year', 'semester', 'created_by', 'closed_by', 'opened_at', 'closed_at', 'notes'], $model->getFillable());
|
|
}
|
|
|
|
public function test_model_class_loads(): void
|
|
{
|
|
$this->assertInstanceOf(ReimbursementBatch::class, new ReimbursementBatch);
|
|
}
|
|
}
|