Page MenuHomeIn-Portal Phabricator

INP-1646 - Handle dynamic parameter names during "m_Param" tag compilation
ClosedPublic

Authored by alex on Nov 26 2016, 10:19 AM.

Details

Test Plan

Part 1

  • run all tests from D224

Part 2

  1. create test.tpl file with this content
<inp2:m_DefaultParam param_name="wow" wow="ok"/>
[<inp2:m_Param name="$param_name"/>]
[<inp2:m_Param name="param_name"/>]
  1. open URL matching that template in browser
  2. confirm, that in View Source of opened page contains:
[ok]
[wow]

Part 3

  1. create test.tpl file with this content
<inp2:m_DefaultParam param_name="wow" wow="ok"/>

<inp2:m_Capture to_var="wow">
	la-la
</inp2:m_Capture>

[<inp2:m_Param name="$param_name"/>]
[<inp2:m_Param name="param_name"/>]
  1. open URL matching that template in browser
  2. confirm, that in View Source of opened page contains:
[la-la]
[wow]

Diff Detail

Repository
rINP In-Portal
Branch
/in-portal/branches/5.2.x
Lint
Lint ErrorsExcuse: It's easier to write code for tag compilation this way.
SeverityLocationCodeMessage
Errorcore/kernel/nparser/ntags.php:417PHPCS.E.Squiz.Strings.DoubleQuoteUsage.ContainsVarSquiz.Strings.DoubleQuoteUsage.ContainsVar
Errorcore/kernel/nparser/ntags.php:418PHPCS.E.Squiz.Strings.DoubleQuoteUsage.ContainsVarSquiz.Strings.DoubleQuoteUsage.ContainsVar
Errorcore/kernel/nparser/ntags.php:418PHPCS.E.Squiz.Strings.DoubleQuoteUsage.ContainsVarSquiz.Strings.DoubleQuoteUsage.ContainsVar
Errorcore/kernel/nparser/ntags.php:419PHPCS.E.Squiz.Strings.DoubleQuoteUsage.ContainsVarSquiz.Strings.DoubleQuoteUsage.ContainsVar
Errorcore/kernel/nparser/ntags.php:419PHPCS.E.Squiz.Strings.DoubleQuoteUsage.ContainsVarSquiz.Strings.DoubleQuoteUsage.ContainsVar
Errorcore/kernel/nparser/ntags.php:420PHPCS.E.Squiz.Strings.DoubleQuoteUsage.ContainsVarSquiz.Strings.DoubleQuoteUsage.ContainsVar
Errorcore/kernel/nparser/ntags.php:421PHPCS.E.Squiz.Strings.DoubleQuoteUsage.NotRequiredSquiz.Strings.DoubleQuoteUsage.NotRequired
Errorcore/kernel/nparser/ntags.php:427PHPCS.E.Squiz.Strings.DoubleQuoteUsage.ContainsVarSquiz.Strings.DoubleQuoteUsage.ContainsVar
Errorcore/kernel/nparser/ntags.php:428PHPCS.E.Squiz.Strings.DoubleQuoteUsage.NotRequiredSquiz.Strings.DoubleQuoteUsage.NotRequired
Errorcore/kernel/nparser/ntags.php:441PHPCS.E.Squiz.Strings.DoubleQuoteUsage.ContainsVarSquiz.Strings.DoubleQuoteUsage.ContainsVar
Errorcore/kernel/nparser/ntags.php:444PHPCS.E.Squiz.Strings.DoubleQuoteUsage.NotRequiredSquiz.Strings.DoubleQuoteUsage.NotRequired
Unit
No Unit Test Coverage
Build Status
Buildable 608
Build 608: arc lint + arc unit

Event Timeline

alex updated this revision to Diff 652.Nov 26 2016, 10:19 AM
alex retitled this revision from to INP-1646 - Handle dynamic parameter names during "m_Param" tag compilation.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1646.
alex edited the test plan for this revision. (Show Details)Nov 26 2016, 10:24 AM
alex edited edge metadata.
erik accepted this revision.Nov 29 2016, 4:25 AM
erik edited edge metadata.
This revision is now accepted and ready to land.Nov 29 2016, 4:25 AM
This revision was automatically updated to reflect the committed changes.