aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/Module/RpostTest.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-06-12 17:08:29 +0200
committerHarald Eilertsen <haraldei@anduin.net>2024-06-13 13:34:20 +0200
commitfb1c66fbc9705961454d86770511642b97b41c1a (patch)
treeb1dc55f9250cce0d4f23db9210aca6cfbff96dd9 /tests/unit/Module/RpostTest.php
parentd02fa7c26805dd485b1d16e99a26a5b9a858deda (diff)
downloadvolse-hubzilla-fb1c66fbc9705961454d86770511642b97b41c1a.tar.gz
volse-hubzilla-fb1c66fbc9705961454d86770511642b97b41c1a.tar.bz2
volse-hubzilla-fb1c66fbc9705961454d86770511642b97b41c1a.zip
Fix warnings exposed by tests.
Mainly missing variables for templates, and channel entries.
Diffstat (limited to 'tests/unit/Module/RpostTest.php')
-rw-r--r--tests/unit/Module/RpostTest.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/unit/Module/RpostTest.php b/tests/unit/Module/RpostTest.php
index 106f06fde..ad94f2f06 100644
--- a/tests/unit/Module/RpostTest.php
+++ b/tests/unit/Module/RpostTest.php
@@ -67,10 +67,13 @@ class RpostTest extends \Zotlabs\Tests\Unit\Module\TestCase {
// Set basic access controls to keep AccessList happy.
\App::$channel = [
- 'channel_allow_cid' => null,
- 'channel_allow_gid' => null,
- 'channel_deny_cid' => null,
- 'channel_deny_gid' => null,
+ 'channel_id' => 42,
+ 'channel_location' => null,
+ 'channel_address' => '',
+ 'channel_allow_cid' => '',
+ 'channel_allow_gid' => '',
+ 'channel_deny_cid' => '',
+ 'channel_deny_gid' => '',
];
$this->get('rpost', $query);