Use either legacy key _PAGE_ or new 'template' one.
Related to https://github.com/kalvn/Shaarli-Material/issues/118
protected function render(string $template): string
{
+ // Legacy key that used to be injected by PluginManager
+ $this->assignView('_PAGE_', $template);
+ $this->assignView('template', $template);
+
$this->assignView('linkcount', $this->container->bookmarkService->count(BookmarkFilter::$ALL));
$this->assignView('privateLinkcount', $this->container->bookmarkService->count(BookmarkFilter::$PRIVATE));
static::assertSame('templateName', $render);
+ static::assertSame('templateName', $this->assignedValues['_PAGE_']);
+ static::assertSame('templateName', $this->assignedValues['template']);
+
static::assertSame(10, $this->assignedValues['linkcount']);
static::assertSame(5, $this->assignedValues['privateLinkcount']);
static::assertSame(['error'], $this->assignedValues['plugin_errors']);