mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-15 13:48:41 +00:00
Merge branch 'develop'
This commit is contained in:
commit
5ab2d9a06c
|
|
@ -18,8 +18,8 @@ With Karaka you have one partner who can provide many tools and software solutio
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* PHP 8.1
|
* PHP 8.2
|
||||||
* PHP extension: php8.1-dev php8.1-cli php8.1-common php8.1-mysql php8.1-pgsql php8.1-xdebug php8.1-opcache php8.1-pdo php8.1-sqlite php8.1-mbstring php8.1-curl php8.1-imap php8.1-bcmath php8.1-zip php8.1-dom php8.1-xml php8.1-phar php8.1-gd php-pear
|
* PHP extension: php8.2-dev php8.2-cli php8.2-common php8.2-intl php8.2-mysql php8.2-pgsql php8.2-xdebug php8.2-opcache php8.2-pdo php8.2-sqlite php8.2-mbstring php8.2-curl php8.2-imap php8.2-bcmath php8.2-zip php8.2-dom php8.2-xml php8.2-phar php8.2-gd php-pear
|
||||||
* apache2 (recommended) or nginx
|
* apache2 (recommended) or nginx
|
||||||
* mysql-server (recommended) or postgresql postgresql-contrib
|
* mysql-server (recommended) or postgresql postgresql-contrib
|
||||||
* Tools: tesseract-ocr, pdftotext, pdftoppm
|
* Tools: tesseract-ocr, pdftotext, pdftoppm
|
||||||
|
|
|
||||||
|
|
@ -8,15 +8,15 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": ">=9.4",
|
"phpunit/phpunit": ">=11.0",
|
||||||
"friendsofphp/php-cs-fixer": ">=3.8",
|
"friendsofphp/php-cs-fixer": ">=3.51",
|
||||||
"squizlabs/php_codesniffer": ">=3.6",
|
"squizlabs/php_codesniffer": ">=3.7",
|
||||||
"phpmd/phpmd": ">=2.9",
|
"phpmd/phpmd": ">=2.9",
|
||||||
"phpstan/phpstan": ">=1.8.6",
|
"phpstan/phpstan": ">=1.10.62",
|
||||||
"phan/phan": ">=3.2.6",
|
"phan/phan": ">=3.2.6",
|
||||||
"phploc/phploc": ">=7.0",
|
"phploc/phploc": ">=7.0",
|
||||||
"phpmetrics/phpmetrics": ">=2.8",
|
"phpmetrics/phpmetrics": ">=2.8",
|
||||||
"rector/rector": ">=0.18.0"
|
"rector/rector": ">=1.0.3"
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true
|
"prefer-stable": true
|
||||||
|
|
|
||||||
|
|
@ -19,31 +19,23 @@ use Modules\WarehouseManagement\Models\NullStockLocation;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\WarehouseManagement\Models\NullStockLocation::class)]
|
||||||
final class NullStockLocationTest extends \PHPUnit\Framework\TestCase
|
final class NullStockLocationTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\NullStockLocation
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
{
|
{
|
||||||
self::assertInstanceOf('\Modules\WarehouseManagement\Models\StockLocation', new NullStockLocation());
|
self::assertInstanceOf('\Modules\WarehouseManagement\Models\StockLocation', new NullStockLocation());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\NullStockLocation
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
{
|
{
|
||||||
$null = new NullStockLocation(2);
|
$null = new NullStockLocation(2);
|
||||||
self::assertEquals(2, $null->id);
|
self::assertEquals(2, $null->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\NullStockLocation
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testJsonSerialize() : void
|
public function testJsonSerialize() : void
|
||||||
{
|
{
|
||||||
$null = new NullStockLocation(2);
|
$null = new NullStockLocation(2);
|
||||||
|
|
|
||||||
|
|
@ -19,31 +19,23 @@ use Modules\WarehouseManagement\Models\NullStockShelf;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\WarehouseManagement\Models\NullStockShelf::class)]
|
||||||
final class NullStockShelfTest extends \PHPUnit\Framework\TestCase
|
final class NullStockShelfTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\NullStockShelf
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
{
|
{
|
||||||
self::assertInstanceOf('\Modules\WarehouseManagement\Models\StockShelf', new NullStockShelf());
|
self::assertInstanceOf('\Modules\WarehouseManagement\Models\StockShelf', new NullStockShelf());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\NullStockShelf
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
{
|
{
|
||||||
$null = new NullStockShelf(2);
|
$null = new NullStockShelf(2);
|
||||||
self::assertEquals(2, $null->id);
|
self::assertEquals(2, $null->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\NullStockShelf
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testJsonSerialize() : void
|
public function testJsonSerialize() : void
|
||||||
{
|
{
|
||||||
$null = new NullStockShelf(2);
|
$null = new NullStockShelf(2);
|
||||||
|
|
|
||||||
|
|
@ -19,31 +19,23 @@ use Modules\WarehouseManagement\Models\NullStock;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\WarehouseManagement\Models\NullStock::class)]
|
||||||
final class NullStockTest extends \PHPUnit\Framework\TestCase
|
final class NullStockTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\NullStock
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
{
|
{
|
||||||
self::assertInstanceOf('\Modules\WarehouseManagement\Models\Stock', new NullStock());
|
self::assertInstanceOf('\Modules\WarehouseManagement\Models\Stock', new NullStock());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\NullStock
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
{
|
{
|
||||||
$null = new NullStock(2);
|
$null = new NullStock(2);
|
||||||
self::assertEquals(2, $null->id);
|
self::assertEquals(2, $null->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\NullStock
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testJsonSerialize() : void
|
public function testJsonSerialize() : void
|
||||||
{
|
{
|
||||||
$null = new NullStock(2);
|
$null = new NullStock(2);
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ use Modules\WarehouseManagement\Models\StockLocation;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\WarehouseManagement\Models\StockLocation::class)]
|
||||||
final class StockLocationTest extends \PHPUnit\Framework\TestCase
|
final class StockLocationTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
private StockLocation $stock;
|
private StockLocation $stock;
|
||||||
|
|
@ -31,10 +32,7 @@ final class StockLocationTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->stock = new StockLocation();
|
$this->stock = new StockLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\StockLocation
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->stock->id);
|
self::assertEquals(0, $this->stock->id);
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,8 @@ use Modules\WarehouseManagement\Models\StockTransaction;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
final class StockTransactionTest extends \PHPUnit\Framework\TestCase
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\WarehouseManagement\Models\StockTransaction::class)]
|
||||||
|
final class StockMovementTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
private StockTransaction $movement;
|
private StockTransaction $movement;
|
||||||
|
|
||||||
|
|
@ -31,10 +32,7 @@ final class StockTransactionTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->movement = new StockTransaction();
|
$this->movement = new StockTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\StockTransaction
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->movement->id);
|
self::assertEquals(0, $this->movement->id);
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ use Modules\WarehouseManagement\Models\StockShelf;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\WarehouseManagement\Models\StockShelf::class)]
|
||||||
final class StockShelfTest extends \PHPUnit\Framework\TestCase
|
final class StockShelfTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
private StockShelf $stock;
|
private StockShelf $stock;
|
||||||
|
|
@ -31,10 +32,7 @@ final class StockShelfTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->stock = new StockShelf();
|
$this->stock = new StockShelf();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\StockShelf
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->stock->id);
|
self::assertEquals(0, $this->stock->id);
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ use Modules\WarehouseManagement\Models\Stock;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\WarehouseManagement\Models\Stock::class)]
|
||||||
final class StockTest extends \PHPUnit\Framework\TestCase
|
final class StockTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
private Stock $stock;
|
private Stock $stock;
|
||||||
|
|
@ -31,10 +32,7 @@ final class StockTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->stock = new Stock();
|
$this->stock = new Stock();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers Modules\WarehouseManagement\Models\Stock
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->stock->id);
|
self::assertEquals(0, $this->stock->id);
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="Bootstrap.php" colors="true" columns="120" stopOnError="true" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="Bootstrap.php" colors="true" columns="120" stopOnError="true" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd" cacheDirectory=".phpunit.cache">
|
||||||
<coverage includeUncoveredFiles="true" processUncoveredFiles="false">
|
<coverage includeUncoveredFiles="true">
|
||||||
<include>
|
|
||||||
<directory suffix=".php">../</directory>
|
|
||||||
</include>
|
|
||||||
<exclude>
|
|
||||||
<directory>../vendor*</directory>
|
|
||||||
<directory>../MainRepository*</directory>
|
|
||||||
<directory>../Karaka*</directory>
|
|
||||||
<directory>../Admin/Install/Application*</directory>
|
|
||||||
<directory>../phpOMS*</directory>
|
|
||||||
<directory>../tests*</directory>
|
|
||||||
<directory>../*/tests*</directory>
|
|
||||||
<directory>../**/tests*</directory>
|
|
||||||
<directory>*/tests*</directory>
|
|
||||||
<directory suffix="tpl.php">../*</directory>
|
|
||||||
<directory suffix="lang.php">../*</directory>
|
|
||||||
<directory suffix="Test.php">../*</directory>
|
|
||||||
<directory suffix="Routes.php">../*</directory>
|
|
||||||
<directory suffix="Hooks.php">../*</directory>
|
|
||||||
<directory>../**/test*</directory>
|
|
||||||
<directory>../**/Theme*</directory>
|
|
||||||
<directory>../**/Admin/Routes*</directory>
|
|
||||||
<directory>../**/Admin/Hooks*</directory>
|
|
||||||
<directory>../**/Admin/Install*</directory>
|
|
||||||
<directory>../Media/Files*</directory>
|
|
||||||
</exclude>
|
|
||||||
<report>
|
<report>
|
||||||
<clover outputFile="coverage.xml"/>
|
<clover outputFile="coverage.xml"/>
|
||||||
<html outputDirectory="../tests" lowUpperBound="75" highLowerBound="95"/>
|
<html outputDirectory="../tests" lowUpperBound="75" highLowerBound="95"/>
|
||||||
|
|
@ -56,4 +31,31 @@
|
||||||
<const name="WEB_SERVER_DOCROOT" value="./Karaka"/>
|
<const name="WEB_SERVER_DOCROOT" value="./Karaka"/>
|
||||||
<const name="RESET" value="1"/>
|
<const name="RESET" value="1"/>
|
||||||
</php>
|
</php>
|
||||||
|
<source>
|
||||||
|
<include>
|
||||||
|
<directory suffix=".php">../</directory>
|
||||||
|
</include>
|
||||||
|
<exclude>
|
||||||
|
<directory>../vendor*</directory>
|
||||||
|
<directory>../MainRepository*</directory>
|
||||||
|
<directory>../Karaka*</directory>
|
||||||
|
<directory>../Admin/Install/Application*</directory>
|
||||||
|
<directory>../phpOMS*</directory>
|
||||||
|
<directory>../tests*</directory>
|
||||||
|
<directory>../*/tests*</directory>
|
||||||
|
<directory>../**/tests*</directory>
|
||||||
|
<directory>*/tests*</directory>
|
||||||
|
<directory suffix="tpl.php">../*</directory>
|
||||||
|
<directory suffix="lang.php">../*</directory>
|
||||||
|
<directory suffix="Test.php">../*</directory>
|
||||||
|
<directory suffix="Routes.php">../*</directory>
|
||||||
|
<directory suffix="Hooks.php">../*</directory>
|
||||||
|
<directory>../**/test*</directory>
|
||||||
|
<directory>../**/Theme*</directory>
|
||||||
|
<directory>../**/Admin/Routes*</directory>
|
||||||
|
<directory>../**/Admin/Hooks*</directory>
|
||||||
|
<directory>../**/Admin/Install*</directory>
|
||||||
|
<directory>../Media/Files*</directory>
|
||||||
|
</exclude>
|
||||||
|
</source>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user