27 lines
679 B
PHP
27 lines
679 B
PHP
![]() |
<?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);
|
||
|
}
|
||
|
}
|