add test for sole image in label

This commit is contained in:
Diana 2015-11-05 13:29:42 +00:00
parent 49feb54689
commit 91804e99c3

View file

@ -223,15 +223,28 @@ class PortableInfoboxRenderServiceHelperTest extends WikiaBaseTest {
['data',
[
'label' => 'Data <div class="some class">with <h2>div </h2>with <small>class</small></div> and other tags',
'value' => 'Data <small>Value</small>' ],
'value' => 'Data <small>Value</small>'
],
[
'label' => 'Data with div with class and other tags',
'value' => 'Data <small>Value</small>'
]
],
['data',
[
'label' => '<img src="money.jpg" class="test classes" width="20" />',
'value' => 'Data <small>Value</small>'
],
[
'label' => '<img src="money.jpg" class="test classes" width="20" />',
'value' => 'Data <small>Value</small>'
]
]
];
}
/**
* @param array $item
* @param array $heroData