19 declare(strict_types=1);
21 require_once
'tests/UI/AbstractFactoryTest.php';
29 "text" => [
"context" =>
false,
"rules" =>
false],
30 "number" => [
"context" =>
false,
"rules" =>
false],
31 "date" => [
"context" =>
false,
"rules" =>
false],
32 "boolean" => [
"context" =>
false,
"rules" =>
false],
33 "eMail" => [
"context" =>
false,
"rules" =>
false],
34 "status" => [
"context" =>
false,
"rules" =>
false],
35 "statusIcon" => [
"context" =>
false,
"rules" =>
false],
36 "timeSpan" => [
"context" =>
false,
"rules" =>
false],
37 "link" => [
"context" =>
false,
"rules" =>
false],
38 "linkListing" => [
"context" =>
false,
"rules" =>
false]
45 $lng = $this->getMockBuilder(\ilLanguage::class)
46 ->disableOriginalConstructor()
48 $lng->method(
'txt')->willReturnCallback(fn($v) => $v);
51 new \ILIAS\UI\Implementation\Component\Table\Column\Factory(
$lng),
59 $date_format = $df->dateFormat()->germanShort();
62 [Column\Text::class,
$f->text(
"")],
63 [Column\Date::class,
$f->date(
"", $date_format)],
64 [Column\TimeSpan::class,
$f->timespan(
"", $date_format)],
65 [Column\Number::class,
$f->number(
"")],
66 [Column\Boolean::class,
$f->boolean(
"",
'1',
'0')],
67 [Column\Status::class,
$f->status(
"")],
68 [Column\StatusIcon::class,
$f->statusIcon(
"")],
69 [Column\EMail::class,
$f->eMail(
"")],
70 [Column\Link::class,
$f->link(
"")],
71 [Column\LinkListing::class,
$f->linkListing(
"")]
80 $this->assertInstanceOf(
Column\Column::class, $instance);
81 $this->assertInstanceOf($class, $instance);
$kitchensink_info_settings
Defines tests every SHOULD pass UI-factory.
testDataTableColsImplementInterfaces($class, $instance)
getColumnTypeProvider
A Column describes the form of presentation for a certain aspect of data, i.e.