Issue #3250629 by paulocs, longwave: MockBuilder::setMethods is deprecated in PHPUnit8 and removed from PHPUnit10
(cherry picked from commit 588951bbf2
)
merge-requests/1442/head
parent
37a54000b8
commit
f6ffe6aec6
|
@ -103,7 +103,7 @@ class ContextTest extends TestCase {
|
|||
*/
|
||||
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())
|
||||
|
|
Loading…
Reference in New Issue