removed unused code

This commit is contained in:
2022-05-27 09:49:23 +01:00
parent 9862e65ea9
commit a228ea5554
2 changed files with 1 additions and 4 deletions

View File

@ -16,7 +16,6 @@ class UtilsTest extends UnitTestCase{
}
public function testGetTidByNameGetsTid():void {
$this->entityTypeManager->method('getStorage')->willReturn($this->storage);
$term_entity = $this->getMockBuilder('\\Drupal\\Core\\Entity\\EntityBase')->disableOriginalConstructor()->getMock();
$term_entity->expects($this->once())->method('id')->willReturn('3');
$this->storage->expects($this->once())->method('loadByProperties')->with(['name' => 'foo', 'vid' => 'bar'])