Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
[PATCH] Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed May 10, 2019
1 parent b0d8b3b commit df9bfc0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions tests/Block/Service/ShariffShareBlockServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public function testExecute(): void
$blockService = new ShariffShareBlockService('block.service', $this->templating);
$blockService->execute($blockContext);

$this->assertSame('@Core23Shariff/Block/block_shariff.html.twig', $this->templating->view);
static::assertSame('@Core23Shariff/Block/block_shariff.html.twig', $this->templating->view);

$this->assertSame($blockContext, $this->templating->parameters['context']);
$this->assertInternalType('array', $this->templating->parameters['settings']);
$this->assertInstanceOf(BlockInterface::class, $this->templating->parameters['block']);
static::assertSame($blockContext, $this->templating->parameters['context']);
static::assertInternalType('array', $this->templating->parameters['settings']);
static::assertInstanceOf(BlockInterface::class, $this->templating->parameters['block']);
}

public function testGetBlockMetadata(): void
Expand All @@ -68,12 +68,12 @@ public function testGetBlockMetadata(): void

$metadata = $blockService->getBlockMetadata('description');

$this->assertSame('block.service', $metadata->getTitle());
$this->assertSame('description', $metadata->getDescription());
$this->assertNotNull($metadata->getImage());
$this->assertStringStartsWith('data:image/png;base64,', $metadata->getImage() ?? '');
$this->assertSame('Core23ShariffBundle', $metadata->getDomain());
$this->assertSame([
static::assertSame('block.service', $metadata->getTitle());
static::assertSame('description', $metadata->getDescription());
static::assertNotNull($metadata->getImage());
static::assertStringStartsWith('data:image/png;base64,', $metadata->getImage() ?? '');
static::assertSame('Core23ShariffBundle', $metadata->getDomain());
static::assertSame([
'class' => 'fa fa-share-square-o',
], $metadata->getOptions());
}
Expand All @@ -85,7 +85,7 @@ public function testBuildEditForm(): void
$block = new Block();

$formMapper = $this->createMock(FormMapper::class);
$formMapper->expects($this->once())->method('add');
$formMapper->expects(static::once())->method('add');

$blockService->buildEditForm($formMapper, $block);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testDefaultOptions(): void
],
];

$this->assertSame($expected, $config);
static::assertSame($expected, $config);
}

public function testOptions(): void
Expand All @@ -51,6 +51,6 @@ public function testOptions(): void
],
];

$this->assertSame($expected, $config);
static::assertSame($expected, $config);
}
}

0 comments on commit df9bfc0

Please sign in to comment.