4 require_once
'Services/TermsOfService/classes/class.ilTermsOfServiceAcceptanceEntity.php';
30 $this->assertInstanceOf(
'ilTermsOfServiceAcceptanceEntity', $entity);
39 $this->assertEmpty($entity->getId());
48 $this->assertEmpty($entity->getUserId());
57 $this->assertEmpty($entity->getText());
66 $this->assertEmpty($entity->getSource());
75 $this->assertEmpty($entity->getSourceType());
84 $this->assertEmpty($entity->getIso2LanguageCode());
93 $this->assertEmpty($entity->getTimestamp());
102 $this->assertEmpty($entity->getHash());
113 $entity->setId($expected);
114 $this->assertEquals($expected, $entity->getId());
125 $entity->setUserId($expected);
126 $this->assertEquals($expected, $entity->getUserId());
134 $expected =
'Lorem Ipsum';
137 $entity->setText($expected);
138 $this->assertEquals($expected, $entity->getText());
146 $expected =
'/path/to/file';
149 $entity->setSource($expected);
150 $this->assertEquals($expected, $entity->getSource());
161 $entity->setSourceType($expected);
162 $this->assertEquals($expected, $entity->getSourceType());
173 $entity->setIso2LanguageCode($expected);
174 $this->assertEquals($expected, $entity->getIso2LanguageCode());
185 $entity->setTimestamp($expected);
186 $this->assertEquals($expected, $entity->getTimestamp());
197 $entity->setHash($expected);
198 $this->assertEquals($expected, $entity->getHash());