ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
BasicObserverTest.php
Go to the documentation of this file.
1
<?
php
9
namespace
BackgroundTasks\Implementation\Observer
;
10
11
use
ILIAS\BackgroundTasks\Exceptions\Exception
;
12
use
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket
;
13
use
ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence
;
14
use
ILIAS\BackgroundTasks\Implementation\Tasks\DownloadInteger
;
15
use Mockery\Adapter\Phpunit\MockeryTestCase;
16
17
require_once(
"libs/composer/vendor/autoload.php"
);
18
19
class
BasicObserverTest
extends
MockeryTestCase
20
{
21
public
function
testCheckIntegrity
()
22
{
23
$this->expectException(Exception::class);
24
25
$observer =
new
BasicBucket
();
26
$observer->setTask(
new
DownloadInteger
());
27
BasicPersistence::instance
()->saveBucketAndItsTasks($observer);
28
}
29
}
BackgroundTasks\Implementation\Observer\BasicObserverTest
Definition:
BasicObserverTest.php:20
BackgroundTasks\Implementation\Observer\BasicObserverTest\testCheckIntegrity
testCheckIntegrity()
Definition:
BasicObserverTest.php:21
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\BackgroundTasks\Exceptions\Exception
Definition:
Exception.php:16
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket
Definition:
BasicBucket.php:13
ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence
Definition:
BasicPersistence.php:16
ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\instance
static instance()
Definition:
BasicPersistence.php:57
ILIAS\BackgroundTasks\Implementation\Tasks\DownloadInteger
Definition:
DownloadInteger.php:25
BackgroundTasks\Implementation\Observer
Created by PhpStorm.
Definition:
BasicObserverTest.php:9
tests
BackgroundTasks
Implementation
Observer
BasicObserverTest.php
Generated on Thu Oct 2 2025 19:02:06 for ILIAS by
1.9.4 (using
Doxyfile
)