mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-01-11 15:18:41 +00:00
more tests and make classes final
This commit is contained in:
parent
b6da0b9224
commit
62fc49db44
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class Stock
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = 0;
|
||||
protected int $id = 0;
|
||||
|
||||
/**
|
||||
* NAme.
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class StockLocation
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = 0;
|
||||
protected int $id = 0;
|
||||
|
||||
public string $name = '';
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
27
tests/Admin/AdminTest.php
Normal 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;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user