add unit tests

This commit is contained in:
Dennis Eichhorn 2021-11-02 21:57:09 +01:00
parent 19225a3b36
commit 1082718533
2 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
$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());
}
@ -331,7 +331,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
$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());
}

View File

@ -1,5 +1,5 @@
<?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">
<exclude>
<directory>*vendor*</directory>