5require_once(__DIR__.
"/../../../../libs/composer/vendor/autoload.php");
 
    6require_once(__DIR__.
"/../../Base.php");
 
    8use \ILIAS\UI\Component as 
C;
 
   19                return new \ILIAS\UI\Implementation\Component\Listing\Factory();
 
   26                $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Listing\\Factory", $f);
 
   27                $this->assertInstanceOf
 
   28                ( 
"ILIAS\\UI\\Component\\Listing\\Ordered" 
   29                                , $f->ordered(array(
"1"))
 
   31                $this->assertInstanceOf
 
   32                ( 
"ILIAS\\UI\\Component\\Listing\\Unordered" 
   33                                , $f->unordered(array(
"1"))
 
   35                $this->assertInstanceOf
 
   36                ( 
"ILIAS\\UI\\Component\\Listing\\Descriptive" 
   37                                , $f->descriptive(array(
"k1"=>
"c1"))
 
   44                $l = $f->ordered(array(
"1",
"2"));
 
   46                $items = array(
"1",
"2");
 
   47                $this->assertEquals(
$l->getItems(), $items);
 
   52                $l = $f->unordered(array(
"1",
"2"));
 
   54                $items = array(
"1",
"2");
 
   55                $this->assertEquals(
$l->getItems(), $items);
 
   60                $l = $f->descriptive(array(
"k1"=>
"c1",
"k2"=>
"c2"));
 
   62                $items = array(
"k1"=>
"c1",
"k2"=>
"c2");
 
   63                $this->assertEquals(
$l->getItems(), $items);
 
   68                $l = $f->ordered(array())->withItems(array(
"1",
"2"));
 
   70                $items = array(
"1",
"2");
 
   71                $this->assertEquals(
$l->getItems(), $items);
 
   76                $l = $f->unordered(array())->withItems(array(
"1",
"2"));
 
   78                $items = array(
"1",
"2");
 
   79                $this->assertEquals(
$l->getItems(), $items);
 
   84                $l = $f->descriptive(array())->withItems(array(
"k1"=>
"c1",
"k2"=>
"c2"));
 
   86                $items = array(
"k1"=>
"c1",
"k2"=>
"c2");
 
   87                $this->assertEquals(
$l->getItems(), $items);
 
   94                $l = $f->ordered(array(
"1",
"2"));
 
  103                $this->assertEquals($expected, 
$html);
 
  110                        $f->descriptive(array(
"1"));
 
  111                }
catch(InvalidArgumentException $e){
 
  112                        $this->assertEquals(get_class($e), 
"InvalidArgumentException");
 
  120                        $f->descriptive(array(
"1",
"1"));
 
  121                }
catch(InvalidArgumentException $e){
 
  122                        $this->assertEquals(get_class($e), 
"InvalidArgumentException");
 
  130                $l = $f->unordered(array(
"1",
"2"));
 
  139                $this->assertEquals($expected, 
$html);
 
  145                $l = $f->descriptive(array(
"k1"=>
"c1",
"k2"=>
"c2"));
 
  156                $this->assertEquals($expected, 
$html);
 
An exception for terminatinating execution or to throw for unit testing.
Provides common functionality for UI tests.
Test on button implementation.
test_render_ordered_listing()
test_descriptive_with_items()
test_descriptive_invalid_items3()
test_unordered_get_items()
test_descriptive_get_items()
test_implements_factory_interface()
test_render_unordered_listing()
test_unordered_with_items()
test_ordered_with_items()
test_descriptive_invalid_items2()
test_render_descriptive_listing()