File tree Expand file tree Collapse file tree 3 files changed +7
-57
lines changed Expand file tree Collapse file tree 3 files changed +7
-57
lines changed Original file line number Diff line number Diff line change 99use Embed \Providers ;
1010use Embed \Utils ;
1111
12- class N500px extends Adapter implements AdapterInterface
12+ class N500px extends Webpage implements AdapterInterface
1313{
1414 /**
1515 * {@inheritdoc}
@@ -50,15 +50,4 @@ public function getHeight()
5050 return $ this ->imageHeight ;
5151 }
5252 }
53-
54- /**
55- * {@inheritdoc}
56- */
57- protected function run ()
58- {
59- //order is important
60- $ this ->addProvider ('oembed ' , new Providers \OEmbed ());
61- $ this ->addProvider ('opengraph ' , new Providers \OpenGraph ());
62- $ this ->addProvider ('html ' , new Providers \Html ());
63- }
6453}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,12 +5,13 @@ class N500Test extends TestCaseBase
55 public function testPhoto ()
66 {
77 $ this ->assertEmbed (
8- 'https://500px.com/photo/127505793/nude-girl-retro- by-david-dubnitskiy ' ,
8+ 'https://500px.com/photo/138251239/taganay-park- by-daniel-kordan ' ,
99 [
10- 'imageWidth ' => 280 ,
11- 'image ' => 'https://drscdn.500px.org/photo/127505793/w%3D280_h%3D280/c415195ae6156c9ba2a3db37130c22be?v=2 ' ,
12- 'imageHeight ' => 280 ,
13- 'authorName ' => 'David Dubnitskiy ' ,
10+ 'title ' => 'Taganay park by Daniel Kordan ' ,
11+ 'image ' => 'https://drscdn.500px.org/photo/138251239/m%3D900/70e5e5bfded84619fc86ac901dab18a4 ' ,
12+ 'imageWidth ' => 900 ,
13+ 'imageHeight ' => 600 ,
14+ 'authorName ' => 'Kordan ' ,
1415 'type ' => 'photo ' ,
1516 ]
1617 );
You can’t perform that action at this time.
0 commit comments