Skip to content
Snippets Groups Projects
Unverified Commit d935fc48 authored by Alex Pott's avatar Alex Pott
Browse files

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

(cherry picked from commit bb9fb66d)
parent f3e00221
No related branches found
No related tags found
No related merge requests found
......@@ -49,10 +49,8 @@ public function testGetContextValue() {
// Prepare a container that holds the typed data manager mock.
$typed_data_manager = $this->prophesize(TypedDataManagerInterface::class);
$typed_data_manager->getCanonicalRepresentation($typed_data)
->shouldBeCalledOnce()
->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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment