ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTermsOfServiceAcceptanceEntityTest Class Reference
+ Inheritance diagram for ilTermsOfServiceAcceptanceEntityTest:
+ Collaboration diagram for ilTermsOfServiceAcceptanceEntityTest:

Public Member Functions

 setUp ()
 testInstanceCanBeCreated ()
 testIdIsInitiallyEmpty ()
 testUserIdIsInitiallyEmpty ()
 testTextIsInitiallyEmpty ()
 testSourceIsInitiallyEmpty ()
 testSourceTypeIsInitiallyEmpty ()
 testLanguageOfAcceptanceIsInitiallyEmpty ()
 testTimestampOfSigningIsInitiallyEmpty ()
 testHashIsInitiallyEmpty ()
 testEntityShouldReturnIdWhenIdIsSet ()
 testEntityShouldReturnUserIdWhenUserIdIsSet ()
 testEntityShouldReturnTextWhenTextIsSet ()
 testEntityShouldReturnSourceWhenSourceIsSet ()
 testEntityShouldReturnSourceTypeWhenSourceTypeIsSet ()
 testEntityShouldReturnLanguageWhenLanguageIsSet ()
 testEntityShouldReturnTimestampWhenTimestampIsSet ()
 testEntityShouldReturnHashWhenHashIsSet ()

Protected Attributes

 $backupGlobals = false

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 10 of file ilTermsOfServiceAcceptanceEntityTest.php.

Member Function Documentation

ilTermsOfServiceAcceptanceEntityTest::setUp ( )

Definition at line 20 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
}
ilTermsOfServiceAcceptanceEntityTest::testEntityShouldReturnHashWhenHashIsSet ( )

Definition at line 192 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$expected = 'hash';
$entity->setHash($expected);
$this->assertEquals($expected, $entity->getHash());
}
ilTermsOfServiceAcceptanceEntityTest::testEntityShouldReturnIdWhenIdIsSet ( )

Definition at line 108 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$expected = 4711;
$entity->setId($expected);
$this->assertEquals($expected, $entity->getId());
}
ilTermsOfServiceAcceptanceEntityTest::testEntityShouldReturnLanguageWhenLanguageIsSet ( )

Definition at line 168 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$expected = 'de';
$entity->setIso2LanguageCode($expected);
$this->assertEquals($expected, $entity->getIso2LanguageCode());
}
ilTermsOfServiceAcceptanceEntityTest::testEntityShouldReturnSourceTypeWhenSourceTypeIsSet ( )

Definition at line 156 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$expected = 1;
$entity->setSourceType($expected);
$this->assertEquals($expected, $entity->getSourceType());
}
ilTermsOfServiceAcceptanceEntityTest::testEntityShouldReturnSourceWhenSourceIsSet ( )

Definition at line 144 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$expected = '/path/to/file';
$entity->setSource($expected);
$this->assertEquals($expected, $entity->getSource());
}
ilTermsOfServiceAcceptanceEntityTest::testEntityShouldReturnTextWhenTextIsSet ( )

Definition at line 132 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$expected = 'Lorem Ipsum';
$entity->setText($expected);
$this->assertEquals($expected, $entity->getText());
}
ilTermsOfServiceAcceptanceEntityTest::testEntityShouldReturnTimestampWhenTimestampIsSet ( )

Definition at line 180 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$expected = time();
$entity->setTimestamp($expected);
$this->assertEquals($expected, $entity->getTimestamp());
}
ilTermsOfServiceAcceptanceEntityTest::testEntityShouldReturnUserIdWhenUserIdIsSet ( )

Definition at line 120 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$expected = 1337;
$entity->setUserId($expected);
$this->assertEquals($expected, $entity->getUserId());
}
ilTermsOfServiceAcceptanceEntityTest::testHashIsInitiallyEmpty ( )

Definition at line 99 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$this->assertEmpty($entity->getHash());
}
ilTermsOfServiceAcceptanceEntityTest::testIdIsInitiallyEmpty ( )

Definition at line 36 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$this->assertEmpty($entity->getId());
}
ilTermsOfServiceAcceptanceEntityTest::testInstanceCanBeCreated ( )

Definition at line 27 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$this->assertInstanceOf('ilTermsOfServiceAcceptanceEntity', $entity);
}
ilTermsOfServiceAcceptanceEntityTest::testLanguageOfAcceptanceIsInitiallyEmpty ( )

Definition at line 81 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$this->assertEmpty($entity->getIso2LanguageCode());
}
ilTermsOfServiceAcceptanceEntityTest::testSourceIsInitiallyEmpty ( )

Definition at line 63 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$this->assertEmpty($entity->getSource());
}
ilTermsOfServiceAcceptanceEntityTest::testSourceTypeIsInitiallyEmpty ( )

Definition at line 72 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$this->assertEmpty($entity->getSourceType());
}
ilTermsOfServiceAcceptanceEntityTest::testTextIsInitiallyEmpty ( )

Definition at line 54 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$this->assertEmpty($entity->getText());
}
ilTermsOfServiceAcceptanceEntityTest::testTimestampOfSigningIsInitiallyEmpty ( )

Definition at line 90 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$this->assertEmpty($entity->getTimestamp());
}
ilTermsOfServiceAcceptanceEntityTest::testUserIdIsInitiallyEmpty ( )

Definition at line 45 of file ilTermsOfServiceAcceptanceEntityTest.php.

{
$this->assertEmpty($entity->getUserId());
}

Field Documentation

ilTermsOfServiceAcceptanceEntityTest::$backupGlobals = false
protected

Definition at line 15 of file ilTermsOfServiceAcceptanceEntityTest.php.


The documentation for this class was generated from the following file: