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