Inheritance: extends Cake\Controller\Component, use trait TinyAuth\Auth\AclTrait, use trait TinyAuth\Auth\AuthUserTrait
 /**
  * @return void
  */
 public function testHasRoles()
 {
     $this->AuthUser->config('multiRole', true);
     $this->AuthUser->Auth->expects($this->exactly(6))->method('user')->with(null)->will($this->returnValue(['id' => '1', 'Roles' => [['id' => '1'], ['id' => '2']]]));
     $this->assertTrue($this->AuthUser->hasRoles([2]));
     $this->assertTrue($this->AuthUser->hasRoles('2'));
     $this->assertFalse($this->AuthUser->hasRoles([3, 4]));
     $this->assertTrue($this->AuthUser->hasRoles([1, 2], false));
     $this->assertTrue($this->AuthUser->hasRoles([1, 6], [1, 3, 5]));
     $this->assertFalse($this->AuthUser->hasRoles([3, 4], [2, 4]));
     $this->assertFalse($this->AuthUser->hasRoles([1, 3, 5], false, [1, 3]));
     $this->assertTrue($this->AuthUser->hasRoles([1, 3, 5], false, [1, 3, 5]));
 }
 /**
  * @param string|null $path
  *
  * @return array
  */
 protected function _getAcl($path = null)
 {
     $path = Plugin::path('TinyAuth') . 'tests' . DS . 'test_files' . DS;
     return parent::_getAcl($path);
 }