19 declare(strict_types=1);
42 return $this->getMockBuilder(ILegacy::class)
43 ->disableOriginalConstructor()
50 return new class ($legacy_component, $this->any()) extends
NullRenderer {
51 public ?
string $exposed_copyright_data =
null;
54 protected MockObject|
Content $legacy,
55 protected AnyInvokedCount $any
61 $this->exposed_copyright_data = $copyright->exposed_data;
62 return [$this->legacy];
67 return $copyright->exposed_data;
75 public function buildIdentifierFromEntryID(
int $entry_id):
string 77 return 'identifier_' . $entry_id;
90 return new class ($is_default, $is_outdated,
$id, $title, $description, $cp_data) extends
NullEntry {
92 protected bool $is_default,
93 protected bool $is_outdated,
95 protected string $title,
96 protected string $description,
97 protected string $cp_data
101 public function id():
int 106 public function title():
string 111 public function description():
string 113 return $this->description;
116 public function isDefault():
bool 118 return $this->is_default;
121 public function isOutdated():
bool 123 return $this->is_outdated;
129 public function __construct(
public string $exposed_data)
152 $this->assertTrue($copyright->isDefault());
170 $this->assertFalse($copyright->isDefault());
188 $this->assertTrue($copyright->isOutdated());
206 $this->assertFalse($copyright->isOutdated());
224 $this->assertSame(
'identifier_35', $copyright->identifier());
242 $this->assertSame(
'cp title', $copyright->title());
260 $this->assertSame(
'cp description', $copyright->description());
283 $this->assertSame(
'data of copyright',
$renderer->exposed_copyright_data);
301 $this->assertSame(
'data of copyright', $copyright->presentAsString());
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins