comparison core/tests/Drupal/KernelTests/KernelTestBaseTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
135 // Verify that there is a request stack (and that it persisted). 135 // Verify that there is a request stack (and that it persisted).
136 $new_request = $this->container->get('request_stack')->getCurrentRequest(); 136 $new_request = $this->container->get('request_stack')->getCurrentRequest();
137 $this->assertInstanceOf('Symfony\Component\HttpFoundation\Request', $new_request); 137 $this->assertInstanceOf('Symfony\Component\HttpFoundation\Request', $new_request);
138 $this->assertSame($new_request, \Drupal::request()); 138 $this->assertSame($new_request, \Drupal::request());
139 $this->assertSame($request, $new_request); 139 $this->assertSame($request, $new_request);
140
141 // Ensure getting the router.route_provider does not trigger a deprecation
142 // message that errors.
143 $this->container->get('router.route_provider');
140 } 144 }
141 145
142 /** 146 /**
143 * Tests whether the fixture allows us to install modules and configuration. 147 * Tests whether the fixture allows us to install modules and configuration.
144 * 148 *