ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilWACCheckingInstanceTest.php
Go to the documentation of this file.
1 <?php
2 
23 use org\bovigo\vfs;
26 
38 class ilWACCheckingInstanceTest //extends MockeryTestCase
39 {
43  protected $file_one;
47  protected $root;
48 
49 
53  protected function setUp(): void
54  {
55  $this->root = vfs\vfsStream::setup('ilias.de');
56  $this->file_one = vfs\vfsStream::newFile('data/trunk/mobs/mm_123/dummy.jpg')
57  ->at($this->root)->setContent('dummy');
58 
59  //setup container for HttpServiceAware classes
60  $container = new \ILIAS\DI\Container();
61  $container['http'] = fn ($c) => Mockery::mock(Services::class);
62 
63 
64  $GLOBALS["DIC"] = $container;
65  ilWACToken::setSALT('TOKEN');
66  }
67 
68 
75  public function testDeliver(): void
76  {
77  self::markTestSkipped("WIP");
78  }
79 
80 
81  public function testBasic(): void
82  {
83  self::markTestSkipped("Can't run test without db.");
84  }
85 
86 
87  public function testBasicWithFileSigning(): void
88  {
89  self::markTestSkipped("WIP");
90  }
91 
92 
93  public function testBasicWithFolderSigning(): void
94  {
95  self::markTestSkipped("WIP");
96  }
97 
98 
102  public function testNonCheckingInstanceNoSec(): void
103  {
104  self::markTestSkipped("Can't run test without db.");
105 
106  return;
107  // $this->assertTrue($check); // Currently not able to init ILIAS in WAC during PHPUnit
108  // $this->assertEquals(array(
109  // $ilWebAccessChecker::CM_SECFOLDER,
110  // ), $ilWebAccessChecker->getAppliedCheckingMethods());
111  }
112 }
TestCase for the ilWACCheckingInstanceTest.
$c
Definition: cli.php:38
static setSALT(string $salt)
$container
Definition: wac.php:14
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testDeliver()
disabled disabled disabled