Loading core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php +2 −6 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityListBuilder; use Drupal\Core\Routing\RedirectDestinationInterface; use Drupal\Core\Url; use Drupal\entity_test\EntityTestListBuilder; use Drupal\Tests\UnitTestCase; Loading Loading @@ -120,12 +121,7 @@ public function testGetOperations() { $this->role->expects($this->any()) ->method('hasLinkTemplate') ->willReturn(TRUE); $url = $this->getMockBuilder('\Drupal\Core\Url') ->disableOriginalConstructor() ->getMock(); $url->expects($this->atLeastOnce()) ->method('mergeOptions') ->with(['query' => ['destination' => '/foo/bar']]); $url = Url::fromRoute('entity.user_role.collection'); $this->role->expects($this->any()) ->method('toUrl') ->willReturn($url); Loading Loading
core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php +2 −6 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityListBuilder; use Drupal\Core\Routing\RedirectDestinationInterface; use Drupal\Core\Url; use Drupal\entity_test\EntityTestListBuilder; use Drupal\Tests\UnitTestCase; Loading Loading @@ -120,12 +121,7 @@ public function testGetOperations() { $this->role->expects($this->any()) ->method('hasLinkTemplate') ->willReturn(TRUE); $url = $this->getMockBuilder('\Drupal\Core\Url') ->disableOriginalConstructor() ->getMock(); $url->expects($this->atLeastOnce()) ->method('mergeOptions') ->with(['query' => ['destination' => '/foo/bar']]); $url = Url::fromRoute('entity.user_role.collection'); $this->role->expects($this->any()) ->method('toUrl') ->willReturn($url); Loading