for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\SeoBundle\Tests\Block\Breadcrumb;
use Knp\Menu\FactoryInterface;
use Sonata\BlockBundle\Test\BlockServiceTestCase;
use Sonata\SeoBundle\Block\Breadcrumb\BaseBreadcrumbMenuBlockService;
use Twig\Environment;
final class BreadcrumbMenuBlockService_Test extends BaseBreadcrumbMenuBlockService
{
protected function getContext(): string
return 'test';
}
/**
* @author Sylvain Deloux <[email protected]>
final class BreadcrumbTest extends BlockServiceTestCase
public function testBlockService(): void
$blockService = new BreadcrumbMenuBlockService_Test(
$this->createMock(Environment::class),
$this->createMock(FactoryInterface::class)
);
$this->assertTrue($blockService->handleContext('test'));