Unit Test "Application Method "SMWCindyKate::Wikitext.add_FIELD_to_TEMPLATE_NAME" for for replacing an existing field"

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

Content

Returns Wikitext RW

TestsMethod Application Method "SMWCindyKate::Wikitext.add_FIELD_to_TEMPLATE_NAME" DescribesScenario for replacing an existing field TestsMethodCall add_FIELD_to_TEMPLATE_NAME('Name=Value', 'TestTemplate0', :all_template_calls, :replace_existing_field=true) HasStatus Enabled

HowDoesTheMethodAct Returns Wikitext

MPHasPoolPagesFromTestCategory


RWHasWikitextFromTestPage TestPage2 RWExpectsWikitextLikeInTestPage TargetWikitext2

RVHasWikitextFromTestPage RVExpectsValue RVExpectsException

Before

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

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
}}