more tests and make classes final

This commit is contained in:
Dennis Eichhorn 2021-10-21 22:16:07 +02:00
parent b6da0b9224
commit 62fc49db44
6 changed files with 48 additions and 5 deletions

View File

@ -217,7 +217,7 @@
"autoincrement": true
},
"warehousemgmt_lot_status_name": {
"name": "warehousemgmt_lot_status_lot",
"name": "warehousemgmt_lot_status_name",
"type": "VARCHAR(255)",
"null": false
}
@ -261,7 +261,7 @@
"null": false
},
"warehousemgmt_lot_status_lot_created_at": {
"name": "warehousemgmt_lot_status_created_at",
"name": "warehousemgmt_lot_status_lot_created_at",
"type": "DATETIME",
"null": false
}

View File

@ -30,7 +30,7 @@ class Stock
* @var int
* @since 1.0.0
*/
private int $id = 0;
protected int $id = 0;
/**
* NAme.

View File

@ -30,7 +30,7 @@ class StockLocation
* @var int
* @since 1.0.0
*/
private int $id = 0;
protected int $id = 0;
public string $name = '';

View File

@ -11,3 +11,19 @@
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\WarehouseManagement\Models;
use phpOMS\DataStorage\Database\DataMapperAbstract;
/**
* WarehouseManagement mapper class.
*
* @package Modules\WarehouseManagement\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
final class StockMovementMapper extends DataMapperAbstract
{
}

View File

@ -30,7 +30,7 @@ class StockShelf
* @var int
* @since 1.0.0
*/
private int $id = 0;
protected int $id = 0;
public string $name = '';

27
tests/Admin/AdminTest.php Normal file
View File

@ -0,0 +1,27 @@
<?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package tests
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\WarehouseManagement\tests\Admin;
/**
* @internal
*/
class AdminTest extends \PHPUnit\Framework\TestCase
{
protected const NAME = 'WarehouseManagement';
protected const URI_LOAD = 'http://127.0.0.1/en/backend/warehouse';
use \Modules\tests\ModuleTestTrait;
}