|
@@ -19,8 +19,15 @@ class TestUGC extends PHPUnit_Framework_TestCase
|
|
|
}
|
|
|
public function testSpecialObj()
|
|
|
{
|
|
|
- $spobj = new ugc\special_object();
|
|
|
- $spobj->set_share("测试","http://192.168.0.200/data/upload/mobile/special/s0/s0_05240528172336404.png");
|
|
|
+ $special['share_title'] = '测试';
|
|
|
+ $special['share_image'] = "http://192.168.0.200/data/upload/mobile/special/s0/s0_05240528172336404.png";
|
|
|
|
|
|
+ $item['type'] = 'images';
|
|
|
+ $item['images'][] = "http://192.168.0.200/data/upload/mobile/special/s0/s0_05240528172336404.png";
|
|
|
+
|
|
|
+ $item['title'] = '第一次见到大海';
|
|
|
+ $special['items'][] = $item;
|
|
|
+
|
|
|
+ $spobj = ugc_helper::crate_special($special);
|
|
|
}
|
|
|
}
|