Nuevas pruebas
This commit is contained in:
19
app/tests/unit/src/Model/Venta/PromotionTest.php
Normal file
19
app/tests/unit/src/Model/Venta/PromotionTest.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace ProVM\Unit\Model\Venta;
|
||||
|
||||
use Incoviba\Model\Venta\Promotion;
|
||||
use ProVM\Tests\Extension\AbstractModel;
|
||||
use ProVM\Tests\Extension\testMethodsTrait;
|
||||
use ProVM\Tests\Extension\testPropertiesTrait;
|
||||
|
||||
class PromotionTest extends AbstractModel
|
||||
{
|
||||
use testPropertiesTrait, testMethodsTrait;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->model = new Promotion();
|
||||
$this->properties = ['description', 'amount', 'startDate', 'endDate', 'validUntil', 'type', 'state'];
|
||||
$this->methods = ['projects', 'brokers', 'unitTypes', 'unitLines', 'units', 'value'];
|
||||
}
|
||||
}
|
17
app/tests/unit/src/Model/Venta/Reservation/StateTest.php
Normal file
17
app/tests/unit/src/Model/Venta/Reservation/StateTest.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace ProVM\Unit\Model\Venta\Reservation;
|
||||
|
||||
use Incoviba\Model\Venta\Reservation\State;
|
||||
use ProVM\Tests\Extension\AbstractModel;
|
||||
use ProVM\Tests\Extension\testPropertiesTrait;
|
||||
|
||||
class StateTest extends AbstractModel
|
||||
{
|
||||
use testPropertiesTrait;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->model = new State();
|
||||
$this->properties = ['reservation', 'date', 'type'];
|
||||
}
|
||||
}
|
19
app/tests/unit/src/Model/Venta/ReservationTest.php
Normal file
19
app/tests/unit/src/Model/Venta/ReservationTest.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace ProVM\Unit\Model\Venta;
|
||||
|
||||
use Incoviba\Model\Venta\Reservation;
|
||||
use ProVM\Tests\Extension\AbstractModel;
|
||||
use ProVM\Tests\Extension\testMethodsTrait;
|
||||
use ProVM\Tests\Extension\testPropertiesTrait;
|
||||
|
||||
class ReservationTest extends AbstractModel
|
||||
{
|
||||
use testPropertiesTrait, testMethodsTrait;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->model = new Reservation();
|
||||
$this->properties = ['buyer', 'date', 'units', 'promotions', 'broker'];
|
||||
$this->methods = ['states', 'currentState', 'addUnit', 'removeUnit', 'findUnit', 'hasUnit'];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user