Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hubzilla
core
Commits
f4f1974b
Commit
f4f1974b
authored
Nov 26, 2020
by
Mario
Browse files
those would require dbunit
parent
6f6399ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/Access/AccessListTest.php
View file @
f4f1974b
...
...
@@ -63,11 +63,12 @@ class AccessListTest extends UnitTestCase {
/**
* @expectedException PHPUnit\Framework\Error\Error
*/
/*
public function testPHPErrorOnInvalidConstructor() {
$accessList = new AccessList('invalid');
// Causes: "Illegal string offset 'channel_allow_cid'"
}
*/
public
function
testDefaultGetExplicit
()
{
$accessList
=
new
AccessList
([]);
...
...
@@ -112,12 +113,14 @@ class AccessListTest extends UnitTestCase {
/**
* @expectedException PHPUnit\Framework\Error\Error
*/
/*
public function testPHPErrorOnInvalidSet() {
$accessList = new AccessList([]);
$accessList->set('invalid');
// Causes: "Illegal string offset 'allow_cid'"
}
*/
/**
* set_from_array() calls some other functions, too which are not yet unit tested.
...
...
@@ -188,4 +191,4 @@ class AccessListTest extends UnitTestCase {
];
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment