-
-
Notifications
You must be signed in to change notification settings - Fork 315
Fix Twittercards provider type #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I would accept to get values from $twitterProvider = $info->getProviders()['twittercards'];
$twitterProvider->getBag()->get('card'); |
Hi @oscarotero, Thanks for your reply, I linked the PR to the issue I created too. Ok fine for me, so you do prefer something like this for the switch ($type) {
case 'video':
case 'photo':
case 'link':
case 'rich':
case 'summary':
case 'summary_large_image':
case 'app':
return $type;
case 'player':
return 'video';
} |
ddce7b6
to
e0f3beb
Compare
Btw I fixed every tests I could, but I have one error that I'm not sure about how to fix it. 1) Embed\Tests\CustomAdaptersNamespaceTest::testTwo
Embed\Exceptions\InvalidUrlException: gnutls_handshake() failed: Handshake failed
/home/travis/build/oscarotero/Embed/src/Embed.php:144
/home/travis/build/oscarotero/Embed/src/Embed.php:81
/home/travis/build/oscarotero/Embed/tests/AbstractTestCase.php:35
/home/travis/build/oscarotero/Embed/tests/CustomAdaptersNamespaceTest.php:47 Can you help me with this one? 😊 |
e0f3beb
to
88d0939
Compare
Hi.
And about the tests, some fails are temporary, others only happens in the travis platform but not in local, etc. That's a tedious work so I appreciate your help here. When I'm unable to fix a specific test, I add it to the |
18b3b9b
to
4538c95
Compare
4538c95
to
5289d50
Compare
@oscarotero Thanks for the tips ! I fixed what I could, but I start getting weird results: 1) Embed\Tests\ScribdTest::testOne
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-rich
+link In local it's ok, and I check on the website too, it appears that it's really a |
Thanks, I'll try to fix these issues and release a new version |
Description
We need to access to
twitter:card
. But in some cases, websites usevalue
instead ofcontent
.Related to: #290