public function testResolveSortingExplicit() { $this->requestStack->expects($this->once())->method('getMasterRequest')->will($this->returnValue($request = $this->createRequestMock())); $request->attributes->expects($this->once())->method('get')->with($this->identicalTo('_lug_sorting'), $this->identicalTo([]))->will($this->returnValue($sorting = ['foo' => 'ASC'])); $this->assertSame($sorting, $this->parameterResolver->resolveSorting()); }