ILIAS  release_8 Revision v8.24
BasicObserverTest.php
Go to the documentation of this file.
1<?php
26
31use Mockery\Adapter\Phpunit\MockeryTestCase;
32
33require_once("libs/composer/vendor/autoload.php");
34
35class 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}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...