Skip to content

Commit

Permalink
Apply new cs fixer rules (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire authored and core23 committed May 17, 2019
1 parent 32e6e8c commit 974cf2d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/Twig/Extension/SeoExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class SeoExtensionTest extends TestCase
public function testHtmlAttributes()
{
$page = $this->createMock(SeoPageInterface::class);
$page->expects($this->once())->method('getHtmlAttributes')->will($this->returnValue([
$page->expects($this->once())->method('getHtmlAttributes')->willReturn([
'xmlns' => 'http://www.w3.org/1999/xhtml',
'xmlns:og' => 'http://opengraphprotocol.org/schema/',
]));
]);

$extension = new SeoExtension($page, 'UTF-8');

Expand All @@ -38,7 +38,7 @@ public function testHtmlAttributes()
public function testHeadAttributes()
{
$page = $this->createMock(SeoPageInterface::class);
$page->expects($this->once())->method('getHeadAttributes')->will($this->returnValue([]));
$page->expects($this->once())->method('getHeadAttributes')->willReturn([]);

$extension = new SeoExtension($page, 'UTF-8');

Expand All @@ -48,7 +48,7 @@ public function testHeadAttributes()
public function testTitle()
{
$page = $this->createMock(SeoPageInterface::class);
$page->expects($this->once())->method('getTitle')->will($this->returnValue('<b>foo bar</b>'));
$page->expects($this->once())->method('getTitle')->willReturn('<b>foo bar</b>');

$extension = new SeoExtension($page, 'UTF-8');

Expand All @@ -58,14 +58,14 @@ public function testTitle()
public function testEncoding()
{
$page = $this->createMock(SeoPageInterface::class);
$page->expects($this->once())->method('getTitle')->will($this->returnValue('pięć głów zatkniętych na pal'));
$page->expects($this->once())->method('getMetas')->will($this->returnValue([
$page->expects($this->once())->method('getTitle')->willReturn('pięć głów zatkniętych na pal');
$page->expects($this->once())->method('getMetas')->willReturn([
'http-equiv' => [],
'name' => ['foo' => ['pięć głów zatkniętych na pal', []]],
'schema' => [],
'charset' => [],
'property' => [],
]));
]);

$extension = new SeoExtension($page, 'UTF-8');

Expand All @@ -80,7 +80,7 @@ public function testEncoding()
public function testMetadatas()
{
$page = $this->createMock(SeoPageInterface::class);
$page->expects($this->once())->method('getMetas')->will($this->returnValue([
$page->expects($this->once())->method('getMetas')->willReturn([
'http-equiv' => [],
'name' => ['foo' => ['bar "\'"', []]],
'schema' => [],
Expand All @@ -89,7 +89,7 @@ public function testMetadatas()
'og:image:width' => [848, []],
'og:type' => [new MetaTest(), []],
],
]));
]);

$extension = new SeoExtension($page, 'UTF-8');

Expand All @@ -110,7 +110,7 @@ public function testName()
public function testLinkCanonical()
{
$page = $this->createMock(SeoPageInterface::class);
$page->expects($this->any())->method('getLinkCanonical')->will($this->returnValue('http://example.com'));
$page->expects($this->any())->method('getLinkCanonical')->willReturn('http://example.com');

$extension = new SeoExtension($page, 'UTF-8');

Expand All @@ -123,9 +123,9 @@ public function testLinkCanonical()
public function testLangAlternates()
{
$page = $this->createMock(SeoPageInterface::class);
$page->expects($this->once())->method('getLangAlternates')->will($this->returnValue([
$page->expects($this->once())->method('getLangAlternates')->willReturn([
'http://example.com/' => 'x-default',
]));
]);

$extension = new SeoExtension($page, 'UTF-8');

Expand All @@ -138,9 +138,9 @@ public function testLangAlternates()
public function testOEmbedLinks()
{
$page = $this->createMock(SeoPageInterface::class);
$page->expects($this->once())->method('getOembedLinks')->will($this->returnValue([
$page->expects($this->once())->method('getOembedLinks')->willReturn([
'Foo' => 'http://example.com/',
]));
]);

$extension = new SeoExtension($page, 'UTF-8');

Expand Down

0 comments on commit 974cf2d

Please sign in to comment.