ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\User\Tests\InterestedUserFieldAttributeTest Class Reference

Class InterestedUserFieldAttributeTest. More...

+ Inheritance diagram for ILIAS\User\Tests\InterestedUserFieldAttributeTest:
+ Collaboration diagram for ILIAS\User\Tests\InterestedUserFieldAttributeTest:

Public Member Functions

 testGetAttributeName ()
 
 testGetFieldName ()
 
 testAddGetComponent ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ILIAS\User\Tests\BaseTestCase
 assertException (string $exception_class)
 

Private Attributes

InterestedUserFieldAttribute $interested_user_field_attribute
 

Detailed Description

Member Function Documentation

◆ setUp()

ILIAS\User\Tests\InterestedUserFieldAttributeTest::setUp ( )
protected

Definition at line 34 of file InterestedUserFieldAttributeTest.php.

34  : void
35  {
36  $this->interested_user_field_attribute = new InterestedUserFieldAttribute(
37  $this->createMock(\ILIAS\Language\Language::class),
38  'ABCD',
39  'EFGH'
40  );
41  }
Interface Observer Contains several chained tasks and infos about them.

◆ testAddGetComponent()

ILIAS\User\Tests\InterestedUserFieldAttributeTest::testAddGetComponent ( )

Definition at line 53 of file InterestedUserFieldAttributeTest.php.

53  : void
54  {
55  $this->interested_user_field_attribute->addComponent(
56  'comp name',
57  'Description'
58  );
59 
60  $this->assertEquals(
61  [
62  'comp name' => new InterestedUserFieldComponent(
63  'comp name',
64  'Description'
65  )
66  ],
67  $this->interested_user_field_attribute->getComponents()
68  );
69  }

◆ testGetAttributeName()

ILIAS\User\Tests\InterestedUserFieldAttributeTest::testGetAttributeName ( )

Definition at line 43 of file InterestedUserFieldAttributeTest.php.

43  : void
44  {
45  $this->assertEquals('ABCD', $this->interested_user_field_attribute->getAttributeName());
46  }

◆ testGetFieldName()

ILIAS\User\Tests\InterestedUserFieldAttributeTest::testGetFieldName ( )

Definition at line 48 of file InterestedUserFieldAttributeTest.php.

48  : void
49  {
50  $this->assertEquals('INVALID TRANSLATION KEY', $this->interested_user_field_attribute->getName());
51  }

Field Documentation

◆ $interested_user_field_attribute

InterestedUserFieldAttribute ILIAS\User\Tests\InterestedUserFieldAttributeTest::$interested_user_field_attribute
private

Definition at line 32 of file InterestedUserFieldAttributeTest.php.


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