Commit f6ffe6ae authored by catch's avatar catch
Browse files

Issue #3250629 by paulocs, longwave: MockBuilder::setMethods is deprecated in...

Issue #3250629 by paulocs, longwave: MockBuilder::setMethods is deprecated in PHPUnit8 and removed from PHPUnit10

(cherry picked from commit 588951bb)
parent 37a54000
......@@ -103,7 +103,7 @@ public function providerHasContextValue() {
*/
public function testHasContextValue($has_context_value, $default_value): void {
$mock_definition = $this->getMockBuilder('Drupal\Component\Plugin\Context\ContextDefinitionInterface')
->setMethods(['getDefaultValue'])
->onlyMethods(['getDefaultValue'])
->getMockForAbstractClass();
$mock_definition->expects($this->atLeastOnce())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment