Skip to content

Commit 78c7e31

Browse files
committed
Add tests.
1 parent 66c7735 commit 78c7e31

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ Supported class types:
8787
* [x] Forms
8888
* [x] Mailers
8989

90-
Feel free to help out improving and completing this test helper plugin.
91-
92-
* [Full Documentation](docs/README.md)
90+
[Full Documentation](docs/README.md)
9391

9492
## Custom Linter Tasks
9593

src/Controller/TestHelperController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function index() {
3838

3939
$plugins = Plugin::loaded();
4040

41-
$namespace = $this->request->getQuery('plugin');
41+
$namespace = (string)$this->request->getQuery('plugin') ?: null;
4242
if ($namespace && !in_array($namespace, $plugins, true)) {
4343
$this->Flash->error('Invalid plugin');
4444

0 commit comments

Comments
 (0)