ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FeedItemTest.php
Go to the documentation of this file.
1<?php
2
19use PHPUnit\Framework\TestCase;
20
25class FeedItemTest extends TestCase
26{
27 protected function tearDown(): void
28 {
29 }
30
34 public function testFeedItemProperties(): void
35 {
36 $feed_item = new ilFeedItem();
37
38 $feed_item->setAbout("about");
39 $this->assertEquals(
40 "about",
41 $feed_item->getAbout()
42 );
43
44 $feed_item->setDescription("desc");
45 $this->assertEquals(
46 "desc",
47 $feed_item->getDescription()
48 );
49
50 $feed_item->setEnclosureLength(6);
51 $this->assertEquals(
52 6,
53 $feed_item->getEnclosureLength()
54 );
55
56 $feed_item->setEnclosureType("etype");
57 $this->assertEquals(
58 "etype",
59 $feed_item->getEnclosureType()
60 );
61
62 $feed_item->setEnclosureUrl("eurl");
63 $this->assertEquals(
64 "eurl",
65 $feed_item->getEnclosureUrl()
66 );
67 }
68}
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...