ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
BadgeManagementSessionRepositoryTest Class Reference
+ Inheritance diagram for BadgeManagementSessionRepositoryTest:
+ Collaboration diagram for BadgeManagementSessionRepositoryTest:

Public Member Functions

 testClear ()
 
 testBadgeIds ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ilBadgeManagementSessionRepository $repo
 

Detailed Description

Definition at line 21 of file BadgeManagementSessionRepositoryTest.php.

Member Function Documentation

◆ setUp()

BadgeManagementSessionRepositoryTest::setUp ( )
protected

Definition at line 25 of file BadgeManagementSessionRepositoryTest.php.

25  : void
26  {
27  parent::setUp();
28  $this->repo = new ilBadgeManagementSessionRepository();
29  $this->repo->clear();
30  }

◆ tearDown()

BadgeManagementSessionRepositoryTest::tearDown ( )
protected

Definition at line 32 of file BadgeManagementSessionRepositoryTest.php.

32  : void
33  {
34  }

◆ testBadgeIds()

BadgeManagementSessionRepositoryTest::testBadgeIds ( )

Definition at line 47 of file BadgeManagementSessionRepositoryTest.php.

References $repo, ilBadgeManagementSessionRepository\getBadgeIds(), and ilBadgeManagementSessionRepository\setBadgeIds().

47  : void
48  {
50  $repo->setBadgeIds([1,6,7]);
51  $this->assertEquals(
52  [1,6,7],
54  );
55  }
+ Here is the call graph for this function:

◆ testClear()

Field Documentation

◆ $repo

ilBadgeManagementSessionRepository BadgeManagementSessionRepositoryTest::$repo
protected

Definition at line 23 of file BadgeManagementSessionRepositoryTest.php.

Referenced by testBadgeIds(), and testClear().


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