Unverified Commit d935fc48 authored by alexpott's avatar alexpott

Issue #2986735 by tim.plunkett: PHP 5 test fix

(cherry picked from commit bb9fb66d)
parent f3e00221
......@@ -49,11 +49,9 @@ public function testGetContextValue() {
// Prepare a container that holds the typed data manager mock.
$typed_data_manager = $this->prophesize(TypedDataManagerInterface::class);
->will(function () use ($typed_data) {
return $typed_data->getValue();
$typed_data_manager->getCanonicalRepresentation($typed_data)->will(function ($arguments) {
return $arguments[0]->getValue();
$this->container->set('typed_data_manager', $typed_data_manager->reveal());
$definition = new ContextDefinition('any');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment