Merge branch 'master' of git@github.com:johnbintz/plugin-wonderful
This commit is contained in:
commit
2e404d54cc
@ -468,8 +468,9 @@ class PluginWonderfulTest extends PHPUnit_Framework_TestCase {
|
||||
(object)array('adboxid' => '345'),
|
||||
);
|
||||
|
||||
foreach (array('', '123') as $sample_adbox_id) {
|
||||
ob_start();
|
||||
$this->pw->_render_adbox_admin(array('adboxid' => '123', 'center' => 1), array('adboxid' => 'adname', 'center' => 'centername'));
|
||||
$this->pw->_render_adbox_admin(array('adboxid' => $sample_adbox_id, 'center' => 1), array('adboxid' => 'adname', 'center' => 'centername'));
|
||||
$source = ob_get_clean();
|
||||
|
||||
$this->assertTrue(($xml = _to_xml($source)) !== false);
|
||||
@ -483,6 +484,7 @@ class PluginWonderfulTest extends PHPUnit_Framework_TestCase {
|
||||
$this->assertTrue(_xpath_test($xml, $xpath, $value), $xpath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function providerTestRenderPre28Widget() {
|
||||
return array(
|
||||
|
Loading…
Reference in New Issue
Block a user