mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-01-20 11:28:40 +00:00
45 lines
995 B
PHP
45 lines
995 B
PHP
<?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\Billing\tests\Models;
|
|
|
|
use Modules\Billing\Models\StockBillMapper;
|
|
use phpOMS\Utils\TestUtils;
|
|
|
|
/**
|
|
* @testdox Modules\Billing\tests\Models\StockBillMapperTest: App database mapper
|
|
*
|
|
* @internal
|
|
*/
|
|
final class StockBillMapperTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
/**
|
|
* @covers Modules\Billing\Models\StockBillMapper
|
|
* @group module
|
|
*/
|
|
public function testGetStockBeforePivotInvalid() : void
|
|
{
|
|
self::assertEquals([], StockBillMapper::getStockBeforePivot(-1));
|
|
}
|
|
|
|
/**
|
|
* @covers Modules\Billing\Models\StockBillMapper
|
|
* @group module
|
|
*/
|
|
public function testGetStockAfterPivotInvalid() : void
|
|
{
|
|
self::assertEquals([], StockBillMapper::getStockAfterPivot(99999));
|
|
}
|
|
}
|