diff --git a/tests/Block/Service/ShariffShareBlockServiceTest.php b/tests/Block/Service/ShariffShareBlockServiceTest.php index d8e444c5..7ad16f23 100755 --- a/tests/Block/Service/ShariffShareBlockServiceTest.php +++ b/tests/Block/Service/ShariffShareBlockServiceTest.php @@ -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 @@ -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()); } @@ -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); } diff --git a/tests/DependencyInjection/ConfigurationTest.php b/tests/DependencyInjection/ConfigurationTest.php index 76f49f6b..fd1392e2 100644 --- a/tests/DependencyInjection/ConfigurationTest.php +++ b/tests/DependencyInjection/ConfigurationTest.php @@ -30,7 +30,7 @@ public function testDefaultOptions(): void ], ]; - $this->assertSame($expected, $config); + static::assertSame($expected, $config); } public function testOptions(): void @@ -51,6 +51,6 @@ public function testOptions(): void ], ]; - $this->assertSame($expected, $config); + static::assertSame($expected, $config); } }