Files
oficial/app/tests/unit/src/Model/Proyecto/BrokerTest.php

27 lines
679 B
PHP
Raw Normal View History

2025-04-29 23:21:19 -04:00
<?php
namespace ProVM\Unit\Model\Proyecto;
use Incoviba\Model\Proyecto\Broker;
use PHPUnit\Framework\TestCase;
use ProVM\Unit\ObjectHasMethodTrait;
class BrokerTest extends TestCase
{
use ObjectHasMethodTrait;
public function testAttributes(): void
{
$broker = new Broker();
$this->assertObjectHasProperty('rut', $broker);
$this->assertObjectHasProperty('digit', $broker);
$this->assertObjectHasProperty('name', $broker);
}
public function testRelations(): void
{
$broker = new Broker();
$this->assertObjectHasMethod('data', $broker);
$this->assertObjectHasMethod('contracts', $broker);
}
}