ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
BasicObserverTestTBD.php
Go to the documentation of this file.
1<?php
2
27
32use Mockery\Adapter\Phpunit\MockeryTestCase;
33
34require_once("vendor/composer/vendor/autoload.php");
35
36class BasicObserverTest extends MockeryTestCase
37{
38 public function testCheckIntegrity(): void
39 {
40 $this->expectException(Exception::class);
41
42 $observer = new BasicBucket();
43 $observer->setTask(new DownloadInteger());
44 BasicPersistence::instance($this->createMock(\ilDBInterface::class))->saveBucketAndItsTasks($observer);
45 }
46}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...