Skip to content

Commit

Permalink
Fix test without any assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 20, 2023
1 parent 345422d commit 1468fdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Extension/SandboxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,15 @@ public function testMultipleClassMatchesViaInheritanceInAllowedMethods()
$twig_parent_first->load('1_childobj_childmethod')->render(self::$params);
} catch (SecurityError $e) {
$this->fail('checkMethodAllowed is exiting prematurely after matching a parent class and not seeing a method allowed on a child class later in the list');
}
}

try {
$twig_child_first->load('1_childobj_parentmethod')->render(self::$params);
} catch (SecurityError $e) {
$this->fail('checkMethodAllowed is exiting prematurely after matching a child class and not seeing a method allowed on its parent class later in the list');
}

$this->expectNotToPerformAssertions();
}

protected function getEnvironment($sandboxed, $options, $templates, $tags = [], $filters = [], $methods = [], $properties = [], $functions = [])
Expand Down

0 comments on commit 1468fdf

Please sign in to comment.