Class ilTestParticipantListTest.  
 More...
◆ setUp()
  
  
      
        
          | ilTestParticipantListTest::setUp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ test_instantiateObject_shouldReturnInstance()
      
        
          | ilTestParticipantListTest::test_instantiateObject_shouldReturnInstance  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testAddParticipant()
      
        
          | ilTestParticipantListTest::testAddParticipant  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 50 of file ilTestParticipantListTest.php.
   53         $participant->setActiveId(22);
    54         $this->testObj->addParticipant($participant);
    55         $this->assertEquals($participant, $this->testObj->getParticipantByActiveId(22));
 
 
 
 
◆ testCurrent()
      
        
          | ilTestParticipantListTest::testCurrent  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 170 of file ilTestParticipantListTest.php.
References $id.
  178         foreach ($ids as 
$id) {
   180             $participant->setUsrId($id);
   181             $this->testObj->addParticipant($participant);
   184         $this->assertEquals($ids[0], $this->testObj->current()->getUsrId());
   186         $this->testObj->next();
   187         $this->assertEquals($ids[1], $this->testObj->current()->getUsrId());
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ testGetAccessFilteredList()
      
        
          | ilTestParticipantListTest::testGetAccessFilteredList  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 136 of file ilTestParticipantListTest.php.
References $id.
  152         foreach ($ids as 
$id) {
   154             $participant->setUsrId($id);
   155             $this->testObj->addParticipant($participant);
   158         $callback = 
static function ($userIds) use ($expected) {
   162         $result = $this->testObj->getAccessFilteredList($callback);
   164         $this->assertNotNull($result->getParticipantByUsrId(12));
   165         $this->assertNotNull($result->getParticipantByUsrId(125));
   166         $this->assertNotNull($result->getParticipantByUsrId(176));
   167         $this->assertNull($result->getParticipantByUsrId(212121));
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ testGetAllActiveIds()
      
        
          | ilTestParticipantListTest::testGetAllActiveIds  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 99 of file ilTestParticipantListTest.php.
References $id.
  109         foreach ($ids as 
$id) {
   111             $participant->setActiveId($id);
   112             $this->testObj->addParticipant($participant);
   114         $this->assertEquals($ids, $this->testObj->getAllActiveIds());
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ testGetAllUserIds()
      
        
          | ilTestParticipantListTest::testGetAllUserIds  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 81 of file ilTestParticipantListTest.php.
References $id.
   91         foreach ($ids as 
$id) {
    93             $participant->setUsrId($id);
    94             $this->testObj->addParticipant($participant);
    96         $this->assertEquals($ids, $this->testObj->getAllUserIds());
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ testGetParticipantByUsrId()
      
        
          | ilTestParticipantListTest::testGetParticipantByUsrId  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 58 of file ilTestParticipantListTest.php.
   61         $participant->setUsrId(125);
    62         $this->testObj->addParticipant($participant);
    63         $this->assertEquals($participant, $this->testObj->getParticipantByUsrId(125));
 
 
 
 
◆ testHasUnfinishedPasses()
      
        
          | ilTestParticipantListTest::testHasUnfinishedPasses  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 66 of file ilTestParticipantListTest.php.
   69         $participant->setUnfinishedPasses(
false);
    70         $this->testObj->addParticipant($participant);
    72         $this->assertFalse($this->testObj->hasUnfinishedPasses());
    75         $participant->setUnfinishedPasses(
true);
    76         $this->testObj->addParticipant($participant);
    78         $this->assertTrue($this->testObj->hasUnfinishedPasses());
 
 
 
 
◆ testIsActiveIdInList()
      
        
          | ilTestParticipantListTest::testIsActiveIdInList  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 117 of file ilTestParticipantListTest.php.
References $id.
  127         foreach ($ids as 
$id) {
   129             $participant->setActiveId($id);
   130             $this->testObj->addParticipant($participant);
   132         $this->assertTrue($this->testObj->isActiveIdInList(12));
   133         $this->assertFalse($this->testObj->isActiveIdInList(222222));
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ testKey()
      
        
          | ilTestParticipantListTest::testKey  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 210 of file ilTestParticipantListTest.php.
References $id.
  218         foreach ($ids as 
$id) {
   220             $participant->setUsrId($id);
   221             $this->testObj->addParticipant($participant);
   224         $this->testObj->next();
   225         $this->testObj->next();
   227         $this->assertEquals(2, $this->testObj->key());
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ testNext()
      
        
          | ilTestParticipantListTest::testNext  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 190 of file ilTestParticipantListTest.php.
References $id.
  198         foreach ($ids as 
$id) {
   200             $participant->setUsrId($id);
   201             $this->testObj->addParticipant($participant);
   204         $this->testObj->next();
   205         $this->testObj->next();
   207         $this->assertEquals($ids[2], $this->testObj->current()->getUsrId());
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ testRewind()
      
        
          | ilTestParticipantListTest::testRewind  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 252 of file ilTestParticipantListTest.php.
References $id.
  260         foreach ($ids as 
$id) {
   262             $participant->setUsrId($id);
   263             $this->testObj->addParticipant($participant);
   266         $this->testObj->next();
   267         $this->testObj->next();
   268         $this->assertEquals($ids[2], $this->testObj->current()->getUsrId());
   270         $this->testObj->rewind();
   271         $this->assertEquals($ids[0], $this->testObj->current()->getUsrId());
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ testValid()
      
        
          | ilTestParticipantListTest::testValid  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 230 of file ilTestParticipantListTest.php.
References $id.
  238         foreach ($ids as 
$id) {
   240             $participant->setUsrId($id);
   241             $this->testObj->addParticipant($participant);
   244         $this->testObj->next();
   245         $this->testObj->next();
   246         $this->assertTrue($this->testObj->valid());
   248         $this->testObj->next();
   249         $this->assertFalse($this->testObj->valid());
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ $testObj
The documentation for this class was generated from the following file: