/** * @param int $windowId * @return bool */ public function updateWindowsState($windowId) { return (bool) $this->getRepository()->update($this->getUser(), $this->filterId($windowId), $this->requestStateManager->getData()); }
public function testGetData() { $request = new Request([], ['data' => ['url' => 'localhost/path']], [], [], [], ['SCRIPT_NAME' => 'localhost']); $this->requestStack->expects($this->once())->method('getCurrentRequest')->willReturn($request); $this->assertEquals(['url' => 'localhost/path', 'cleanUrl' => '/path'], $this->manager->getData()); }