Unit Test " for in multiple template calls of which some already have that field"

From SMW CindyKate - Main
UnitTest1704261359
Jump to: navigation, search

Content

{{{HowDoesTheMethodAct}}}


TestsMethod DescribesScenario in multiple template calls of which some already have that field TestsMethodCall add_FIELD_to_TEMPLATE_CALL('Name=Value', 'ComponentType 100004', :all_template_calls, :replace_existing_field=true) HasStatus MISSING STATUS

HowDoesTheMethodAct MISSING

MPHasPoolPagesFromTestCategory


RWHasWikitextFromTestPage RWExpectsWikitextLikeInTestPage

RVHasWikitextFromTestPage RVExpectsValue RVExpectsException


Before

{{Component
     |Root context ID=CUS0{{me}}
}}
Freetext0
{{ComponentType 100004
  |Name=Existing
}}
{{ComponentType 100004}}

Command

 add_FIELD_to_TEMPLATE_CALL('Name=Value', 'ComponentType 100004', :all_template_calls, :replace_existing_field=true)

After

{{Component
  |Root context ID=CUS0{{me}}
}}
Freetext0
{{ComponentType 100004
  |Name=Value
}}
{{ComponentType 100004
  |Name=Value
}}