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:19
MockeryTestCase
ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\instance
static instance()
Definition:
BasicPersistence.php:57
BackgroundTasks\Implementation\Observer
Created by PhpStorm.
Definition:
BasicObserverTest.php:9
ILIAS\BackgroundTasks\Implementation\Tasks\DownloadInteger
Definition:
DownloadInteger.php:24
Exception
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket
Definition:
BasicBucket.php:12
BasicBucket
BasicPersistence
BackgroundTasks\Implementation\Observer\BasicObserverTest\testCheckIntegrity
testCheckIntegrity()
Definition:
BasicObserverTest.php:21
php
DownloadInteger
tests
BackgroundTasks
Implementation
Observer
BasicObserverTest.php
Generated on Thu Jan 16 2025 19:02:38 for ILIAS by
1.8.13 (using
Doxyfile
)