4require_once(
"libs/composer/vendor/autoload.php");
 
    5require_once(__DIR__ . 
"/../../Base.php");
 
    7use \ILIAS\UI\Component as 
C;
 
    8use \ILIAS\UI\Implementation as 
I;
 
   17        'internal_rating' => 
'Best',
 
   18        'date_desc' => 
'Most Recent',
 
   19        'date_asc' => 
'Oldest',
 
   24        return new I\Component\ViewControl\Factory(
 
   32        $sortation = 
$f->sortation($this->options);
 
   33        $this->assertInstanceOf(
 
   34            "ILIAS\\UI\\Component\\ViewControl\\Sortation",
 
   37        $this->assertInstanceOf(
 
   38            "ILIAS\\UI\\Component\\Signal",
 
   39            $sortation->getSelectSignal()
 
   46        $s = 
$f->sortation($this->options);
 
   48        $this->assertEquals($this->options, 
$s->getOptions());
 
   50        $this->assertEquals(
'label', 
$s->withLabel(
'label')->getLabel());
 
   52        $s = 
$s->withTargetURL(
'#', 
'param');
 
   53        $this->assertEquals(
'#', 
$s->getTargetURL());
 
   54        $this->assertEquals(
'param', 
$s->getParameterName());
 
   56        $this->assertEquals(array(), 
$s->getTriggeredSignals());
 
   58        $signal = $generator->create();
 
   61            $s->withOnSort($signal)->getTriggeredSignals()[0]->getSignal()
 
   69        $s = 
$f->sortation($this->options);
 
   81<div 
class=
"il-viewcontrol-sortation" id=
""><div 
class=
"dropdown"><button 
class=
"btn btn-default dropdown-toggle" type=
"button" data-toggle=
"dropdown"  aria-label=
"actions" aria-haspopup=
"true" aria-expanded=
"false" > <span 
class=
"caret"></span></button><ul 
class=
"dropdown-menu">
 
   82        <li><button 
class=
"btn btn-link" data-action=
"?sortation=internal_rating" id=
"id_1"  >Best</button></li>
 
   83        <li><button 
class=
"btn btn-link" data-action=
"?sortation=date_desc" id=
"id_2"  >Most Recent</button></li>
 
   84        <li><button 
class=
"btn btn-link" data-action=
"?sortation=date_asc" id=
"id_3"  >Oldest</button></li></ul></div>
 
   92        return new \ILIAS\UI\Implementation\Factory(
 
   93            $this->createMock(
C\Counter\Factory::class),
 
   94            $this->createMock(
C\Glyph\Factory::class),
 
   96            $this->createMock(
C\Listing\Factory::class),
 
   97            $this->createMock(
C\Image\Factory::class),
 
   98            $this->createMock(
C\Panel\Factory::class),
 
   99            $this->createMock(
C\Modal\Factory::class),
 
  100            $this->createMock(
C\Dropzone\Factory::class),
 
  101            $this->createMock(
C\Popover\Factory::class),
 
  102            $this->createMock(
C\Divider\Factory::class),
 
  103            $this->createMock(
C\Link\Factory::class),
 
  104            new I\Component\Dropdown\Factory,
 
  105            $this->createMock(
C\Item\Factory::class),
 
  106            $this->createMock(
C\Icon\Factory::class),
 
  107            $this->createMock(
C\ViewControl\Factory::class),
 
  108            $this->createMock(
C\Chart\Factory::class),
 
  109            $this->createMock(
C\Input\Factory::class),
 
  110            $this->createMock(
C\Table\Factory::class),
 
  111            $this->createMock(
C\MessageBox\Factory::class),
 
  112            $this->createMock(
C\Card\Factory::class)
 
An exception for terminatinating execution or to throw for unit testing.
Provides common functionality for UI tests.
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Test on icon implementation.
getSortationExpectedHTML()