Update dependency psalm/plugin-phpunit to ^0.19.0 #85
Annotations
11 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run mutation tests with pcov and infection/infection:
src/Action/SitemapXMLAction.php#L30
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$response = new Response($this->generator->toXML());
$response->headers->set('Content-Type', 'text/xml');
- $response->setPublic();
+
return $response;
}
}
|
Run mutation tests with pcov and infection/infection:
src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L39
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
}
public final function execute(BlockContextInterface $blockContext, ?Response $response = null) : Response
{
- $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext];
+ $responseSettings = ['menu' > $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext];
$template = $blockContext->getTemplate();
if ('private' === $blockContext->getSetting('cache_policy')) {
return $this->renderResponse($template, $responseSettings, $response)->setTtl(0)->setPrivate();
|
Run mutation tests with pcov and infection/infection:
src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L40
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
}
public final function execute(BlockContextInterface $blockContext, ?Response $response = null) : Response
{
- $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext];
+ $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' > $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext];
$template = $blockContext->getTemplate();
if ('private' === $blockContext->getSetting('cache_policy')) {
return $this->renderResponse($template, $responseSettings, $response)->setTtl(0)->setPrivate();
|
Run mutation tests with pcov and infection/infection:
src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L41
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
}
public final function execute(BlockContextInterface $blockContext, ?Response $response = null) : Response
{
- $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext];
+ $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' > $blockContext->getBlock(), 'context' => $blockContext];
$template = $blockContext->getTemplate();
if ('private' === $blockContext->getSetting('cache_policy')) {
return $this->renderResponse($template, $responseSettings, $response)->setTtl(0)->setPrivate();
|
Run mutation tests with pcov and infection/infection:
src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L47
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
{
$responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext];
$template = $blockContext->getTemplate();
- if ('private' === $blockContext->getSetting('cache_policy')) {
+ if ('private' !== $blockContext->getSetting('cache_policy')) {
return $this->renderResponse($template, $responseSettings, $response)->setTtl(0)->setPrivate();
}
return $this->renderResponse($template, $responseSettings, $response);
|
Run mutation tests with pcov and infection/infection:
src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L75
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
$resolver->setDefaults(['cache_policy' => 'public', 'template' => '@SonataBlock/Block/block_core_menu.html.twig', 'safe_labels' => false, 'current_class' => 'active', 'first_class' => false, 'last_class' => false, 'current_uri' => null, 'menu_class' => 'list-group', 'children_class' => 'list-group-item', 'menu_template' => '@NucleosSeo/Block/breadcrumb.html.twig', 'include_homepage_link' => true, 'context' => null]);
}
- protected function getMenu(BlockContextInterface $blockContext) : ItemInterface
+ private function getMenu(BlockContextInterface $blockContext) : ItemInterface
{
$settings = $blockContext->getSettings();
$menu = $this->factory->createItem('breadcrumb');
|
Run mutation tests with pcov and infection/infection:
src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L80
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$settings = $blockContext->getSettings();
$menu = $this->factory->createItem('breadcrumb');
- $menu->setChildrenAttribute('class', 'breadcrumb');
+
$menu->setCurrent(true);
$menu->setUri($settings['current_uri']);
if (true === $settings['include_homepage_link']) {
|
Run mutation tests with pcov and infection/infection:
src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L81
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
$settings = $blockContext->getSettings();
$menu = $this->factory->createItem('breadcrumb');
$menu->setChildrenAttribute('class', 'breadcrumb');
- $menu->setCurrent(true);
+ $menu->setCurrent(false);
$menu->setUri($settings['current_uri']);
if (true === $settings['include_homepage_link']) {
$menu->addChild('nucleos_seo_homepage_breadcrumb', ['uri' => '/']);
|
Run mutation tests with pcov and infection/infection:
src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L81
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$settings = $blockContext->getSettings();
$menu = $this->factory->createItem('breadcrumb');
$menu->setChildrenAttribute('class', 'breadcrumb');
- $menu->setCurrent(true);
+
$menu->setUri($settings['current_uri']);
if (true === $settings['include_homepage_link']) {
$menu->addChild('nucleos_seo_homepage_breadcrumb', ['uri' => '/']);
|
Run mutation tests with pcov and infection/infection:
src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L82
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$menu = $this->factory->createItem('breadcrumb');
$menu->setChildrenAttribute('class', 'breadcrumb');
$menu->setCurrent(true);
- $menu->setUri($settings['current_uri']);
+
if (true === $settings['include_homepage_link']) {
$menu->addChild('nucleos_seo_homepage_breadcrumb', ['uri' => '/']);
}
|
Loading