aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-01-19 10:34:11 +0100
committerArthurHoaro <arthur@hoa.ro>2021-01-19 10:34:11 +0100
commitccd1862d5f6f2c0548473466aaff7ee99f9d67d2 (patch)
tree12b05377c8555f7775c83e9922b64305febfac9e /tests/front
parent544bbdaf8399c7a9e3c1e8b880e6f0a2fa15a769 (diff)
downloadShaarli-ccd1862d5f6f2c0548473466aaff7ee99f9d67d2.tar.gz
Shaarli-ccd1862d5f6f2c0548473466aaff7ee99f9d67d2.tar.zst
Shaarli-ccd1862d5f6f2c0548473466aaff7ee99f9d67d2.zip
Inject current template name in templates
Use either legacy key _PAGE_ or new 'template' one. Related to https://github.com/kalvn/Shaarli-Material/issues/118
Diffstat (limited to 'tests/front')
-rw-r--r--tests/front/controller/visitor/ShaarliVisitorControllerTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/front/controller/visitor/ShaarliVisitorControllerTest.php b/tests/front/controller/visitor/ShaarliVisitorControllerTest.php
index 935ec24e..7676f14d 100644
--- a/tests/front/controller/visitor/ShaarliVisitorControllerTest.php
+++ b/tests/front/controller/visitor/ShaarliVisitorControllerTest.php
@@ -93,6 +93,9 @@ class ShaarliVisitorControllerTest extends TestCase
93 93
94 static::assertSame('templateName', $render); 94 static::assertSame('templateName', $render);
95 95
96 static::assertSame('templateName', $this->assignedValues['_PAGE_']);
97 static::assertSame('templateName', $this->assignedValues['template']);
98
96 static::assertSame(10, $this->assignedValues['linkcount']); 99 static::assertSame(10, $this->assignedValues['linkcount']);
97 static::assertSame(5, $this->assignedValues['privateLinkcount']); 100 static::assertSame(5, $this->assignedValues['privateLinkcount']);
98 static::assertSame(['error'], $this->assignedValues['plugin_errors']); 101 static::assertSame(['error'], $this->assignedValues['plugin_errors']);