ILIAS  release_8 Revision v8.24
FeedItemTest.php
Go to the documentation of this file.
1<?php
2
3use PHPUnit\Framework\TestCase;
4
9class FeedItemTest extends TestCase
10{
11 protected function tearDown(): void
12 {
13 }
14
18 public function testFeedItemProperties(): void
19 {
20 $feed_item = new ilFeedItem();
21
22 $feed_item->setAbout("about");
23 $this->assertEquals(
24 "about",
25 $feed_item->getAbout()
26 );
27
28 $feed_item->setDescription("desc");
29 $this->assertEquals(
30 "desc",
31 $feed_item->getDescription()
32 );
33
34 $feed_item->setEnclosureLength(6);
35 $this->assertEquals(
36 6,
37 $feed_item->getEnclosureLength()
38 );
39
40 $feed_item->setEnclosureType("etype");
41 $this->assertEquals(
42 "etype",
43 $feed_item->getEnclosureType()
44 );
45
46 $feed_item->setEnclosureUrl("eurl");
47 $this->assertEquals(
48 "eurl",
49 $feed_item->getEnclosureUrl()
50 );
51 }
52}
Test clipboard repository.
testFeedItemProperties()
Test get HTML return an array.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...