[Embed] Using oscarotero/Embed as first attempt to get oEmbed/OpenGraph data, fallback
to previous implementation otherwise.
This commit is contained in:
committed by
Diogo Cordeiro
parent
b25632ebc4
commit
462ea26303
@@ -92,7 +92,7 @@ class oEmbedTest extends PHPUnit_Framework_TestCase
|
||||
public function _doTest($url, $expectedType)
|
||||
{
|
||||
try {
|
||||
$data = oEmbedHelper::getObject($url);
|
||||
$data = EmbedHelper::getObject($url);
|
||||
$this->assertEquals($expectedType, $data->type);
|
||||
if ($data->type == 'photo') {
|
||||
$this->assertTrue(!empty($data->url), 'Photo must have a URL.');
|
||||
|
Reference in New Issue
Block a user