Skip to content
Snippets Groups Projects
Commit 166156e4 authored by Joseph Olstad's avatar Joseph Olstad
Browse files

Issue #3455186 by cmlara, joseph.olstad - Refactor tests for D11 phpunit 10+...

Issue #3455186 by cmlara, joseph.olstad - Refactor tests for D11 phpunit 10+ compatibility refactoring test.
parent c3b8e964
No related branches found
No related tags found
No related merge requests found
Pipeline #332602 failed
......@@ -98,13 +98,15 @@ class CshsGroupByRootFormatterUnitTest extends UnitTestCase {
* The term ID.
* @param string $label
* The term label.
* @param \Drupal\Core\Link $link
* The link object.
* @param string|null $parent
* The parent term ID (if any).
*
* @return \Drupal\taxonomy\TermInterface|\PHPUnit\Framework\MockObject\MockObject
* The mocked term object.
*/
protected function createMockTerm(int $id, string $label, Link $link, $parent = NULL): MockObject {
protected function createMockTerm(int $id, string $label, Link $link, $parent = NULL): TermInterface {
$term = $this->createMock(TermInterface::class);
// Mock only the methods you need.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment