mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-02 00:18:40 +00:00
cs fixes, bug fixes, code coverage
This commit is contained in:
parent
c88265b0b5
commit
012b876923
42
tests/Models/StockLocationTest.php
Normal file
42
tests/Models/StockLocationTest.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?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\Models;
|
||||
|
||||
use Modules\WarehouseManagement\Models\StockLocation;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class StockLocationTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
private StockLocation $stock;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() : void
|
||||
{
|
||||
$this->stock = new StockLocation();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\WarehouseManagement\Models\StockLocation
|
||||
* @group module
|
||||
*/
|
||||
public function testDefault() : void
|
||||
{
|
||||
self::assertEquals(0, $this->stock->getId());
|
||||
}
|
||||
}
|
||||
42
tests/Models/StockMovementTest.php
Normal file
42
tests/Models/StockMovementTest.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?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\Models;
|
||||
|
||||
use Modules\WarehouseManagement\Models\StockMovement;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class StockMovementTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
private StockMovement $movement;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() : void
|
||||
{
|
||||
$this->movement = new StockMovement();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\WarehouseManagement\Models\StockMovement
|
||||
* @group module
|
||||
*/
|
||||
public function testDefault() : void
|
||||
{
|
||||
self::assertEquals(0, $this->movement->getId());
|
||||
}
|
||||
}
|
||||
42
tests/Models/StockShelfTest.php
Normal file
42
tests/Models/StockShelfTest.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?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\Models;
|
||||
|
||||
use Modules\WarehouseManagement\Models\StockShelf;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class StockShelfTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
private StockShelf $stock;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() : void
|
||||
{
|
||||
$this->stock = new StockShelf();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\WarehouseManagement\Models\StockShelf
|
||||
* @group module
|
||||
*/
|
||||
public function testDefault() : void
|
||||
{
|
||||
self::assertEquals(0, $this->stock->getId());
|
||||
}
|
||||
}
|
||||
42
tests/Models/StockTest.php
Normal file
42
tests/Models/StockTest.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?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\Models;
|
||||
|
||||
use Modules\WarehouseManagement\Models\Stock;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class StockTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
private Stock $stock;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() : void
|
||||
{
|
||||
$this->stock = new Stock();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\WarehouseManagement\Models\Stock
|
||||
* @group module
|
||||
*/
|
||||
public function testDefault() : void
|
||||
{
|
||||
self::assertEquals(0, $this->stock->getId());
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user