Closed juergmessmer closed 10 years ago
Can you add two unit tests (one for replaceIdentifier
and one for replaceIdentifierMultiple
) where the content is null
? I’ll fix the template code.
Should it not be a TemplateIdentifierContextTest test?
I don’t really care for the method names and the classes they’re in as long as they’re at least somewhat logical.
I made a test method called "testReplaceIdentifierMultipleNullWithContext". (Sorry: how do I run the unit tests :-[ )
./base/scripts/run-tests.sh
You said (correctly) that this should be a TemplateIdentifierContextTest
. So why then do you not put the method in that class? Also, I said to add two unit tests (one with multiple, one without). You only added one.
The dashboard shows a admin_sidebar now.
When I check the code in AdminManager::doAdmin() where the sidebar_content is replaced, the $mSidebarContent is null, but the admin_sidebar element is added to the main template anyway.
I guess this issue is related to the recent refactoring of the Template class.