public function testResolveTranslationDomainExplicitWithGrid() { $this->requestStack->expects($this->exactly(2))->method('getMasterRequest')->will($this->returnValue($request = $this->createRequestMock())); $request->attributes->expects($this->at(0))->method('get')->with($this->identicalTo('_lug_grid'), $this->isNull())->will($this->returnValue(['grid'])); $request->attributes->expects($this->at(1))->method('get')->with($this->identicalTo('_lug_translation_domain'), $this->identicalTo('grids'))->will($this->returnValue($translationDomain = 'translation_domain')); $this->assertSame($translationDomain, $this->parameterResolver->resolveTranslationDomain()); }