Skip to content

Commit

Permalink
Fix self-deprecation in testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat authored and Danny van Wijk committed Feb 3, 2025
1 parent 80b56ab commit 1a35fd6
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protected function getContainerExtensions(): array
public function testCorrectParametersHaveBeenSet()
{
$this->container->setParameter('twig.form.resources', []);
$this->load();
$this->load(['enable_improved_urlchooser' => true]);

$this->assertContainerBuilderHasParameter('twig.form.resources');
$this->assertContainerBuilderHasParameter('kunstmaan_node.show_add_homepage', true);
Expand All @@ -29,6 +29,16 @@ public function testCorrectParametersHaveBeenSet()
$this->assertContainerBuilderHasParameter('kunstmaan_node.lock_enabled', false);
$this->assertContainerBuilderHasParameter('kunstmaan_node.version_timeout', 3600);
$this->assertContainerBuilderHasParameter('kunstmaan_node.url_chooser.lazy_increment', 2);
$this->assertContainerBuilderHasParameter('kunstmaan_node.enable_improved_urlchooser', false);
$this->assertContainerBuilderHasParameter('kunstmaan_node.enable_improved_urlchooser', true);
}

/**
* @group legacy
*/
public function testImprovedUrlChooserConfigDeprecation()
{
$this->expectDeprecation('Since kunstmaan/node-bundle 7.2: Not setting the "kunstmaan_node.enable_improved_urlchooser" config to true is deprecated, it will always be true in 8.0.');
$this->container->setParameter('twig.form.resources', []);
$this->load();
}
}

0 comments on commit 1a35fd6

Please sign in to comment.