Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Session / UserSessionTest.php
index 85fe1bbf36dec068aff075ad6145d7c5f078ad9d..4ae51829035788113e5f1370395470cb24dc12e5 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace Drupal\Tests\Core\Session;
 
+use Drupal\Core\Cache\MemoryCache\MemoryCache;
 use Drupal\Core\DependencyInjection\ContainerBuilder;
 use Drupal\Core\Session\UserSession;
 use Drupal\Tests\UnitTestCase;
@@ -94,6 +95,7 @@ class UserSessionTest extends UnitTestCase {
       ]));
 
     $role_storage = $this->getMockBuilder('Drupal\user\RoleStorage')
+      ->setConstructorArgs(['role', new MemoryCache()])
       ->disableOriginalConstructor()
       ->setMethods(['loadMultiple'])
       ->getMock();