Unit Test "Application Method "SMWCindyKate::Pages.NOT_having_FIELD_VALUE_for_FIELD_NAME_in_TEMPLATE_NAME" for Standard"

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

Content

Manipulates SMWCindyKate::Pages.pages Array

Tests Method Call
NOT_having_FIELD_VALUE_for_FIELD_NAME_in_TEMPLATE_NAME("FieldValue1", "TestTemplateField0", "TestTemplate0")
Pool Pages from Category:TestCategory1
TestPage3 (edit)
{{TestTemplate0
|TestTemplateField0=FieldValue0
}}
[[Category:TestCategory1]]
TestPage4 (edit)
Same value for same field in multiple instances of the same template.

{{Template0 |Field0=Value0 }} {{Template0 |Field1=Value0 }}

[[Category:TestCategory0]][[Category:TestCategory1]]
TestPage5 (edit)
Different values for same field in multiple instances of the same template.

{{Template0 |Field0=Value0 }} {{Template0 |Field1=Value1 }}

[[Category:TestCategory0]][[Category:TestCategory1]]
Expected Pages
TestPage3 (edit)
{{TestTemplate0
|TestTemplateField0=FieldValue0
}}
[[Category:TestCategory1]]

TestsMethod Application Method "SMWCindyKate::Pages.NOT_having_FIELD_VALUE_for_FIELD_NAME_in_TEMPLATE_NAME" DescribesScenario Standard TestsMethodCall NOT_having_FIELD_VALUE_for_FIELD_NAME_in_TEMPLATE_NAME("FieldValue1", "TestTemplateField0", "TestTemplate0") HasStatus Enabled

HowDoesTheMethodAct Manipulates SMWCindyKate::Pages.pages Array

MPHasPoolPagesFromTestCategory TestCategory1 MPExpectsPage TestPage3

RWHasWikitextFromTestPage RWExpectsWikitextLikeInTestPage

RVHasWikitextFromTestPage RVExpectsValue RVExpectsException