installEntitySchema('node'); $this->installConfig('node'); $this->installSchema('node', ['node_access']); $this->installSchema('system', ['key_value']); $this->executeMigrations([ 'language', 'd7_language_types', 'd7_language_negotiation_settings', 'd7_user_role', 'd7_user', 'd7_node_type', 'd7_node', 'd7_node_translation', ]); } /** * Tests that not found node translations are redirected. */ public function testNodeTranslationRedirect() { $kernel = $this->container->get('http_kernel'); $request = Request::create('/node/3'); $response = $kernel->handle($request); $this->assertSame(301, $response->getStatusCode()); $this->assertSame('/node/2', $response->getTargetUrl()); } }