Skip to content
Snippets Groups Projects
Commit 07507b11 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 7f3821b0
No related branches found
No related tags found
No related merge requests found
Pipeline #332623 failed
......@@ -127,7 +127,7 @@ class CshsGroupByRootFormatterUnitTest extends UnitTestCase {
}
/**
*
* Required methods from TermInterface.
*/
public function id() {
return $this->id;
......@@ -148,46 +148,52 @@ class CshsGroupByRootFormatterUnitTest extends UnitTestCase {
}
/**
* Implement the getIterator() method for IteratorAggregate.
*
*/
public function getIterator() {
return new \ArrayIterator([]);
public function getName() {
return $this->label;
}
/**
* Stub out additional methods to satisfy TermInterface requirements.
*
*/
public function bundle() {}
public function setName($name) {
$this->label = $name;
}
/**
*
*/
public function getEntityTypeId() {}
public function getWeight() {
return 0;
}
/**
*
*/
public function uuid() {}
public function setWeight($weight) {}
/**
*
* Implement the getIterator() method for IteratorAggregate.
*/
public function getDescription() {}
public function getIterator() {
return new \ArrayIterator([]);
}
/**
*
* Methods required by EntityInterface.
*/
public function setDescription($description) {}
public function bundle() {}
/**
*
*/
public function getFormat() {}
public function getEntityTypeId() {}
/**
*
*/
public function setFormat($format) {}
public function uuid() {}
/**
*
......@@ -245,6 +251,76 @@ class CshsGroupByRootFormatterUnitTest extends UnitTestCase {
return $this->link;
}
/**
* Additional methods required by TermInterface.
*/
public function getDescription() {}
/**
*
*/
public function setDescription($description) {}
/**
*
*/
public function getFormat() {}
/**
*
*/
public function setFormat($format) {}
/**
*
*/
public function isPublished() {
return TRUE;
}
/**
*
*/
public function setPublished($published) {}
/**
*
*/
public function getVocabularyId() {
return 'default';
}
/**
*
*/
public function setVocabularyId($vid) {}
/**
*
*/
public function getParentIds() {
return [];
}
/**
*
*/
public function setParentIds(array $parent_ids) {}
/**
*
*/
public function getParents() {
return [];
}
/**
*
*/
public function getChildren() {
return [];
}
};
}
......
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