public function oa_core_section_is_publicUnitTest::testoa_core_section_is_public_success in Open Atrium Core 7.2
File
- tests/
oa_core_section_is_publicUnit.test, line 16 - Tests the public interface of the oa_core_section_is_public function.
Class
- oa_core_section_is_publicUnitTest
- @file Tests the public interface of the oa_core_section_is_public function.
Code
public function testoa_core_section_is_public_success() {
$node = (object) array(
'field_oa_group_ref' => array(
LANGUAGE_NONE => array(),
),
'field_oa_team_ref' => array(
LANGUAGE_NONE => array(),
),
'field_oa_user_ref' => array(
LANGUAGE_NONE => array(),
),
);
$this
->assertEqual(oa_core_section_is_public($node), TRUE, 'If Node does not have any visibilty settings should return TRUE');
}