This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.  
 More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 
Definition at line 34 of file LSControlBuilderTest.php.
 
◆ setUp()
  
  
      
        
          | LSControlBuilderTest::setUp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 40 of file LSControlBuilderTest.php.
References $lang, and ILIAS\LTI\ToolProvider\$settings.
   42         $ui_factory = $this->mockUIFactory();
    43         $lang = $this->mockIlLanguage();
    46         $uri = $data_factory->uri(
'https://ilias.de/somepath');
    49         $uri = $data_factory->uri(
'http://ilias.de/some/other/path');
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ testConstruction()
      
        
          | LSControlBuilderTest::testConstruction  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 55 of file LSControlBuilderTest.php.
   57         $this->assertInstanceOf(ControlBuilder::class, $this->control_builder);
  
 
 
◆ testDone()
      
        
          | LSControlBuilderTest::testDone  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 159 of file LSControlBuilderTest.php.
  161         $cb = $this->control_builder->done(
'cmd', 1);
   162         $this->assertInstanceOf(ControlBuilder::class, $cb);
   163         $this->assertInstanceOf(
Button\Primary::class, $cb->getDoneControl());
 
 
 
 
◆ testExit()
      
        
          | LSControlBuilderTest::testExit  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 70 of file LSControlBuilderTest.php.
   72         $cb = $this->control_builder->exit(
'cmd');
    73         $this->assertInstanceOf(ControlBuilder::class, $cb);
    74         $this->assertInstanceOf(
Button\Bulky::class, $cb->getExitControl());
 
 
 
 
◆ testGeneric()
      
        
          | LSControlBuilderTest::testGeneric  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 143 of file LSControlBuilderTest.php.
  145         $cb = $this->control_builder->generic(
'label', 
'cmd', 1);
   146         $this->assertInstanceOf(ControlBuilder::class, $cb);
   147         $this->assertInstanceOf(
Button\Standard::class, $cb->getControls()[0]);
 
 
 
 
◆ testInitialValues()
      
        
          | LSControlBuilderTest::testInitialValues  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 60 of file LSControlBuilderTest.php.
   62         $this->assertNull($this->control_builder->getExitControl());
    63         $this->assertNull($this->control_builder->getNextControl());
    64         $this->assertNull($this->control_builder->getPreviousControl());
    65         $this->assertNull($this->control_builder->getDoneControl());
    66         $this->assertEquals([], $this->control_builder->getControls());
    67         $this->assertNull($this->control_builder->getToc());
  
 
 
◆ testLocator()
      
        
          | LSControlBuilderTest::testLocator  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 185 of file LSControlBuilderTest.php.
  187         $cb = $this->control_builder->locator(
'cmd');
   188         $this->assertInstanceOf(LocatorBuilder::class, $cb);
  
 
 
◆ testMode()
      
        
          | LSControlBuilderTest::testMode  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 178 of file LSControlBuilderTest.php.
  180         $cb = $this->control_builder->mode(
'cmd', [
'm1', 
'm2']);
   181         $this->assertInstanceOf(ControlBuilder::class, $cb);
   182         $this->assertInstanceOf(
ViewControl\Mode::class, $cb->getModeControls()[0]);
 
 
 
 
◆ testMultipleGeneric()
      
        
          | LSControlBuilderTest::testMultipleGeneric  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 150 of file LSControlBuilderTest.php.
  152         $cb = $this->control_builder
   153             ->generic(
'label', 
'cmd', 1)
   154             ->generic(
'label', 
'cmd', 2)
   155             ->generic(
'label', 
'cmd', 3);
   156         $this->assertCount(3, $cb->getControls());
  
 
 
◆ testNavigationControls()
      
        
          | LSControlBuilderTest::testNavigationControls  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 90 of file LSControlBuilderTest.php.
   92         $cb = $this->control_builder
    95         $this->assertInstanceOf(ControlBuilder::class, $cb);
    96         $this->assertInstanceOf(
Button\Standard::class, $cb->getPreviousControl());
    97         $this->assertInstanceOf(
Button\Standard::class, $cb->getNextControl());
 
 
 
 
◆ testToC()
      
        
          | LSControlBuilderTest::testToC  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 124 of file LSControlBuilderTest.php.
  126         $toc = $this->control_builder->tableOfContent(
'cmd', 
'rootnode');
   127         $this->assertInstanceOf(TOCBuilder::class, $toc);
   128         $this->assertEquals($toc, $this->control_builder->getToc());
  
 
 
◆ testUniqueDone()
      
        
          | LSControlBuilderTest::testUniqueDone  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testUniqueExit()
      
        
          | LSControlBuilderTest::testUniqueExit  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testUniqueLocator()
      
        
          | LSControlBuilderTest::testUniqueLocator  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 191 of file LSControlBuilderTest.php.
References Vendor\Package\$e.
  194             $this->control_builder->locator(
'cmd')
   196             $this->control_builder->locator(
'cmd');
   197             $this->assertFalse(
"This should not happen");
   199             $this->assertTrue(
true);
 
 
 
 
◆ testUniqueNext()
      
        
          | LSControlBuilderTest::testUniqueNext  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testUniquePrevious()
      
        
          | LSControlBuilderTest::testUniquePrevious  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testUniqueToC()
      
        
          | LSControlBuilderTest::testUniqueToC  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 131 of file LSControlBuilderTest.php.
References Vendor\Package\$e.
  134             $this->control_builder->tableOfContent(
'cmd', 
'rootnode')
   136             $this->control_builder->tableOfContent(
'cmd', 
'rootnode');
   137             $this->assertFalse(
"This should not happen");
   139             $this->assertTrue(
true);
 
 
 
 
◆ $control_builder
The documentation for this class was generated from the following file: