cs fixes, bug fixes, code coverage

This commit is contained in:
Dennis Eichhorn 2021-11-16 00:05:43 +01:00
parent 0bef02d266
commit 1618e33de6
2 changed files with 3 additions and 5 deletions

View File

@ -12,9 +12,7 @@ If you have a good idea for improvement feel free to create a new issue with all
### Issues
Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the `Project.md` file in the `Docs` repository.
The issue information can be used to provide additional information such as priority, difficulty and type. For your first issue try to find a issue marked `[d:first]` or `[d:beginner]`.
Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the code marked with `@todo` or in the [PROJECT.md](https://github.com/Orange-Management/Docs/blob/master/Project/PROJECT.md) file.
### Code Style

View File

@ -68,7 +68,7 @@ final class SearchControllerTest extends \PHPUnit\Framework\TestCase
$permission = new AccountPermission();
$permission->setUnit(1);
$permission->setApp('backend');
$permission->setApp('api');
$permission->setPermission(
PermissionType::READ
| PermissionType::CREATE
@ -100,6 +100,6 @@ final class SearchControllerTest extends \PHPUnit\Framework\TestCase
$request->setData('search', ':help file');
$this->module->searchHelp($request, $response);
self::assertCount(3, $response->get(''));
self::assertGreaterThan(0, \count($response->get('')));
}
}