add projet
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit\Models;
|
||||
|
||||
use App\Models\ManualPayment;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ManualPaymentTest extends TestCase
|
||||
{
|
||||
public function test_model_metadata_is_converted(): void
|
||||
{
|
||||
$model = new ManualPayment();
|
||||
|
||||
$this->assertSame('manual_payments', $model->getTable());
|
||||
$this->assertSame('id', $model->getKeyName());
|
||||
$this->assertSame(false, $model->timestamps);
|
||||
$this->assertSame(["invoice_number", "amount", "payment_method", "reference", "discount_number", "proof_path", "created_at", "school_year", "semester"], $model->getFillable());
|
||||
}
|
||||
|
||||
public function test_model_class_loads(): void
|
||||
{
|
||||
$this->assertInstanceOf(ManualPayment::class, new ManualPayment());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user