ILIAS  release_7 Revision v7.30-3-g800a261c036
BasicObserverTest.php
Go to the documentation of this file.
1<?php
25
30use Mockery\Adapter\Phpunit\MockeryTestCase;
31
32require_once("libs/composer/vendor/autoload.php");
33
34class 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}
An exception for terminatinating execution or to throw for unit testing.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...