mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-16 00:08:41 +00:00
add unit tests
This commit is contained in:
parent
19225a3b36
commit
1082718533
|
|
@ -221,7 +221,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
$this->module->apiDepartmentFind($request, $response);
|
$this->module->apiDepartmentFind($request, $response);
|
||||||
|
|
||||||
self::assertEquals('test', $response->get('')[0]->name);
|
self::assertTrue(\stripos(\strtolower($response->get('')[0]->name), 'test') !== false);
|
||||||
self::assertGreaterThan(0, $response->get('')[0]->getId());
|
self::assertGreaterThan(0, $response->get('')[0]->getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -331,7 +331,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
$this->module->apiPositionFind($request, $response);
|
$this->module->apiPositionFind($request, $response);
|
||||||
|
|
||||||
self::assertEquals('test', $response->get('')[0]->name);
|
self::assertTrue(\stripos(\strtolower($response->get('')[0]->name), 'test') !== false);
|
||||||
self::assertGreaterThan(0, $response->get('')[0]->getId());
|
self::assertGreaterThan(0, $response->get('')[0]->getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?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" 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/9.3/phpunit.xsd">
|
||||||
<coverage includeUncoveredFiles="true" processUncoveredFiles="false">
|
<coverage includeUncoveredFiles="true" processUncoveredFiles="false">
|
||||||
<exclude>
|
<exclude>
|
||||||
<directory>*vendor*</directory>
|
<directory>*vendor*</directory>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user