예제 #1
0
 public function testRemoveSubject2()
 {
     // remove a subject when rights exists on it
     jAclDbManager::removeSubject('super.cms');
     array_shift($this->subjects);
     $this->assertTableContainsRecords('jacl_subject', $this->subjects);
     $this->rights = array(array('id_aclsbj' => 'admin.access', 'id_aclgrp' => 1, 'id_aclres' => null, 'value' => 'TRUE'));
     $this->assertTableContainsRecords('jacl_rights', $this->rights);
 }