ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilWACCheckingInstanceTest.php
Go to the documentation of this file.
1 <?php
2 
19 require_once("vendor/composer/vendor/autoload.php");
20 
25 use org\bovigo\vfs;
28 
35 class ilWACCheckingInstanceTest extends Testcase
36 {
40  protected $file_one;
44  protected $root;
45 
46 
50  protected function setUp(): void
51  {
52  $this->root = vfs\vfsStream::setup('ilias.de');
53  $this->file_one = vfs\vfsStream::newFile('data/trunk/mobs/mm_123/dummy.jpg')
54  ->at($this->root)->setContent('dummy');
55 
56  //setup container for HttpServiceAware classes
57  $container = new \ILIAS\DI\Container();
58  $container['http'] = fn($c) => Mockery::mock(Services::class);
59 
60 
61  $GLOBALS["DIC"] = $container;
62  ilWACToken::setSALT('TOKEN');
63  }
64 
65 
66  public function testDeliver(): void
67  {
68  self::markTestSkipped("WIP");
69  }
70 
71 
72  public function testBasic(): void
73  {
74  self::markTestSkipped("Can't run test without db.");
75  }
76 
77 
78  public function testBasicWithFileSigning(): void
79  {
80  self::markTestSkipped("WIP");
81  }
82 
83 
84  public function testBasicWithFolderSigning(): void
85  {
86  self::markTestSkipped("WIP");
87  }
88 
89 
93  public function testNonCheckingInstanceNoSec(): void
94  {
95  self::markTestSkipped("Can't run test without db.");
96 
97  return;
98  // $this->assertTrue($check); // Currently not able to init ILIAS in WAC during PHPUnit
99  // $this->assertEquals(array(
100  // $ilWebAccessChecker::CM_SECFOLDER,
101  // ), $ilWebAccessChecker->getAppliedCheckingMethods());
102  }
103 }
TestCase for the ilWACCheckingInstanceTest.
static setSALT(string $salt)
$c
Definition: deliver.php:9
$container
Definition: wac.php:13
$GLOBALS["DIC"]
Definition: wac.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...