diff --git a/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php b/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php index 5fe2570..ca8c59d 100644 --- a/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php +++ b/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php @@ -99,7 +99,7 @@ public function testValidate() { */ public function testValidateParameterTypes($token, $value) { // Ensure that there is a valid token seed on the session. - $ignored_token = $this->generator->get(); + $this->generator->get(); // The following check might throw PHP fatals and notices, so we disable // error assertions. @@ -135,7 +135,7 @@ public function providerTestValidateParameterTypes() { */ public function testInvalidParameterTypes($token, $value = '') { // Ensure that there is a valid token seed on the session. - $ignored_token = $this->generator->get(); + $this->generator->get(); $this->generator->validate($token, $value); } diff --git a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php index 95e3cc4..6cd69c6 100644 --- a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php +++ b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php @@ -153,9 +153,7 @@ function setUp() { * * @see testRender */ - function providerTestRender() { - $create_link_element = function($href, $media = 'all', $browsers = array()) { return array( '#type' => 'html_tag', diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTest.php b/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTest.php index 8ab7bb6..0069d15 100644 --- a/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTest.php +++ b/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTest.php @@ -63,7 +63,6 @@ protected function getLocalTaskManager($module_dirs, $route_name, $route_params) $property->setValue($manager, $controllerResolver); // todo mock a request with a route. - $request = $this->getMock('Symfony\Component\HttpFoundation\Request'); $request_stack = new RequestStack(); $property = new \ReflectionProperty('Drupal\Core\Menu\LocalTaskManager', 'requestStack'); $property->setAccessible(TRUE); diff --git a/core/tests/Drupal/Tests/Core/Plugin/Discovery/DerivativeDiscoveryDecoratorTest.php b/core/tests/Drupal/Tests/Core/Plugin/Discovery/DerivativeDiscoveryDecoratorTest.php index 35f9257..c22c201 100644 --- a/core/tests/Drupal/Tests/Core/Plugin/Discovery/DerivativeDiscoveryDecoratorTest.php +++ b/core/tests/Drupal/Tests/Core/Plugin/Discovery/DerivativeDiscoveryDecoratorTest.php @@ -84,7 +84,7 @@ public function testGetDerivativeFetcherWithAnnotationObjects() { ->will($this->returnValue($definitions)); $discovery = new DerivativeDiscoveryDecorator($this->discoveryMain); - $discovery->getDefinitions(); + $definitions = $discovery->getDefinitions(); // Ensure that both test derivatives got added. $this->assertEquals(2, count($definitions));