Commit 588951bb 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
parent 92836c43
Loading
Loading
Loading
Loading
+1 −1
Changes for core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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())