cs fixes, bug fixes, code coverage

This commit is contained in:
Dennis Eichhorn 2021-11-16 00:05:43 +01:00
parent c88265b0b5
commit 012b876923
4 changed files with 168 additions and 0 deletions

View 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());
}
}

View 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());
}
}

View 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());
}
}

View 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());
}
}