@@ -46,7 +46,7 @@ public function testGetItemSingleIdentifier(): void
46
46
47
47
$ matchProphecy = $ this ->prophesize (AggregationMatch::class);
48
48
$ matchProphecy ->field ('id ' )->willReturn ($ matchProphecy )->shouldBeCalled ();
49
- $ matchProphecy ->equals (1 )->shouldBeCalled ();
49
+ $ matchProphecy ->equals (1 )->shouldBeCalled ()-> willReturn ( $ matchProphecy ) ;
50
50
51
51
$ iterator = $ this ->prophesize (Iterator::class);
52
52
$ result = new \stdClass ();
@@ -78,8 +78,8 @@ public function testGetItemWithExecuteOptions(): void
78
78
$ context = ['foo ' => 'bar ' , 'fetch_data ' => true ];
79
79
80
80
$ matchProphecy = $ this ->prophesize (AggregationMatch::class);
81
- $ matchProphecy ->field ('id ' )->willReturn ($ matchProphecy )->shouldBeCalled ();
82
- $ matchProphecy ->equals (1 )->shouldBeCalled ();
81
+ $ matchProphecy ->field ('id ' )->willReturn ($ matchProphecy-> reveal () )->shouldBeCalled ();
82
+ $ matchProphecy ->equals (1 )->shouldBeCalled ()-> willReturn ( $ matchProphecy -> reveal ()) ;
83
83
84
84
$ iterator = $ this ->prophesize (Iterator::class);
85
85
$ result = new \stdClass ();
@@ -112,8 +112,8 @@ public function testGetItemDoubleIdentifier(): void
112
112
$ matchProphecy = $ this ->prophesize (AggregationMatch::class);
113
113
$ matchProphecy ->field ('ida ' )->willReturn ($ matchProphecy )->shouldBeCalled ();
114
114
$ matchProphecy ->field ('idb ' )->willReturn ($ matchProphecy )->shouldBeCalled ();
115
- $ matchProphecy ->equals (1 )->shouldBeCalled ();
116
- $ matchProphecy ->equals (2 )->shouldBeCalled ();
115
+ $ matchProphecy ->equals (1 )->shouldBeCalled ()-> willReturn ( $ matchProphecy ) ;
116
+ $ matchProphecy ->equals (2 )->shouldBeCalled ()-> willReturn ( $ matchProphecy ) ;
117
117
118
118
$ iterator = $ this ->prophesize (Iterator::class);
119
119
$ result = new \stdClass ();
@@ -147,7 +147,7 @@ public function testAggregationResultExtension(): void
147
147
148
148
$ matchProphecy = $ this ->prophesize (AggregationMatch::class);
149
149
$ matchProphecy ->field ('id ' )->willReturn ($ matchProphecy )->shouldBeCalled ();
150
- $ matchProphecy ->equals (1 )->shouldBeCalled ();
150
+ $ matchProphecy ->equals (1 )->shouldBeCalled ()-> willReturn ( $ matchProphecy ) ;
151
151
152
152
$ aggregationBuilderProphecy = $ this ->prophesize (Builder::class);
153
153
$ aggregationBuilderProphecy ->match ()->willReturn ($ matchProphecy ->reveal ())->shouldBeCalled ();
0 commit comments