ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLTIToolConsumerTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use PHPUnit\Framework\TestCase;
22
27class ilLTIToolConsumerTest extends TestCase
28{
29 public function testTitle(): void
30 {
31 $ltiToolConsumer = new ilLTIPlatform(
32 $this->createMock(ilLTIDataConnector::class)
33 );
34 $testString = str_shuffle(uniqid('abcdefgh'));
35 $ltiToolConsumer->setTitle($testString);
36
37 $this->assertEquals($testString, $ltiToolConsumer->getTitle());
38 }
39}
LTI provider for LTI launch.
Class ilLTIToolConsumerTest.