ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
BasicObserverTest.php
Go to the documentation of this file.
1
<?php
25
namespace
BackgroundTasks\Implementation\Observer
;
26
27
use
ILIAS\BackgroundTasks\Exceptions\Exception
;
28
use
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket
;
29
use
ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence
;
30
use
ILIAS\BackgroundTasks\Implementation\Tasks\DownloadInteger
;
31
use Mockery\Adapter\Phpunit\MockeryTestCase;
32
33
require_once(
"libs/composer/vendor/autoload.php"
);
34
35
class
BasicObserverTest
extends
MockeryTestCase
36
{
37
public
function
testCheckIntegrity
()
38
{
39
$this->expectException(Exception::class);
40
41
$observer =
new
BasicBucket
();
42
$observer->setTask(
new
DownloadInteger
());
43
BasicPersistence::instance
($this->createMock(\ilDBInterface::class))->saveBucketAndItsTasks($observer);
44
}
45
}
BackgroundTasks\Implementation\Observer\BasicObserverTest
Definition:
BasicObserverTest.php:36
BackgroundTasks\Implementation\Observer\BasicObserverTest\testCheckIntegrity
testCheckIntegrity()
Definition:
BasicObserverTest.php:37
ILIAS\BackgroundTasks\Exceptions\Exception
Definition:
Exception.php:27
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket
Definition:
BasicBucket.php:29
ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence
Definition:
BasicPersistence.php:33
ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\instance
static instance(\ilDBInterface $db)
Definition:
BasicPersistence.php:43
ILIAS\BackgroundTasks\Implementation\Tasks\DownloadInteger
Definition:
DownloadInteger.php:36
BackgroundTasks\Implementation\Observer
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
BasicObserverTest.php:25
tests
BackgroundTasks
Implementation
Observer
BasicObserverTest.php
Generated on Mon Nov 3 2025 22:02:14 for ILIAS by
1.9.4 (using
Doxyfile
)