Skip to content

Commit 8788234

Browse files
committed
alternate fix where we had accessor for the BrowerKit request/response instances
1 parent 7fceeba commit 8788234

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function getProfile()
6969
return false;
7070
}
7171

72-
return $this->kernel->getContainer()->get('profiler')->loadProfileFromResponse($this->originResponse);
72+
return $this->kernel->getContainer()->get('profiler')->loadProfileFromResponse($this->response);
7373
}
7474

7575
/**

Tests/Functional/SubRequestsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public function testStateAfterSubRequest()
2121
$client = $this->createClient(array('test_case' => 'Session', 'root_config' => 'config.yml'));
2222
$client->request('GET', 'https://localhost/subrequest/en');
2323

24-
$this->assertEquals('--fr/json--en/html--fr/json--http://localhost/subrequest/fragment/en', $client->getOriginResponse()->getContent());
24+
$this->assertEquals('--fr/json--en/html--fr/json--http://localhost/subrequest/fragment/en', $client->getResponse()->getContent());
2525
}
2626
}

0 commit comments

Comments
 (0)