Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Jun 2, 2017
1 parent b00b3aa commit 8d69651
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/api/AclTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public function setUp()
'allow_edit' => 2,
'allow_delete' => 2,
'allow_alter' => null
],
'directus_preferences' => [
'allow_add' => 1,
'allow_view' => 1,
'allow_edit' => 1
]
];

Expand All @@ -88,7 +93,9 @@ public function testGroupPrivileges()
$this->assertArrayNotHasKey('directus_users', $privileges);

$acl->setGroupPrivileges([]);
$this->assertTrue(empty($acl->getGroupPrivileges()));
$this->assertTrue(!empty($acl->getGroupPrivileges()));
$this->assertTrue(!empty($acl->getGroupPrivileges()));
$this->assertCount(1, $acl->getGroupPrivileges());

$acl->setGroupPrivileges($this->privileges);
$privileges = $acl->getGroupPrivileges();
Expand Down

0 comments on commit 8d69651

Please sign in to comment.