-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
“kaganuk”
committed
Oct 28, 2022
1 parent
e3ce831
commit 5461fbd
Showing
45 changed files
with
94 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.identifier"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.title"]')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.identifier"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.title"]')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,8 +174,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.identifier"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.title"]')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,8 +156,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.identifier"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.title"]')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.identifier"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.title"]')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.identifier"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.title"]')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,8 +101,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.identifier"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.title"]')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,8 +42,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.identifier"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.title"]')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,8 +71,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.identifier"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.title"]')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,8 +50,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.identifier"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.title"]')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,8 +150,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('doi:10.7554/eLife.00001', $crawler->filter('meta[name="dc.identifier"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertSame('Article title', $crawler->filter('meta[name="dc.title"]')->attr('content')); | ||
|
@@ -309,8 +309,8 @@ public function it_may_have_a_social_image() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('https://www.example.com/iiif/image/social/full/full/0/default.jpg', $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('https://www.example.com/iiif/image/social/full/full/0/default.jpg', $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
} | ||
|
||
/** | ||
|
@@ -1874,8 +1874,8 @@ public function it_has_metadata_on_previous_versions() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('doi:10.7554/eLife.00001', $crawler->filter('meta[name="dc.identifier"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertSame('Article title', $crawler->filter('meta[name="dc.title"]')->attr('content')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,8 +57,8 @@ public function it_has_metadata() | |
$this->assertSame('summary', $crawler->filter('meta[name="twitter:card"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[name="twitter:image"]')->attr('content')); | ||
$this->assertSame('http://localhost/'.ltrim(self::$kernel->getContainer()->get('elife.assets.packages')->getUrl('assets/images/social/[email protected]'), '/'), $crawler->filter('meta[property="og:image"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('600', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('280', $crawler->filter('meta[property="og:image:width"]')->attr('content')); | ||
$this->assertSame('200', $crawler->filter('meta[property="og:image:height"]')->attr('content')); | ||
$this->assertSame('doi:10.7554/eLife.id-of-article-with-era', $crawler->filter('meta[name="dc.identifier"]')->attr('content')); | ||
$this->assertEmpty($crawler->filter('meta[name="dc.relation.ispartof"]')); | ||
$this->assertSame('Article title', $crawler->filter('meta[name="dc.title"]')->attr('content')); | ||
|
Oops, something went wrong.