public function testQueueMoveBottomShouldThrowAnExceptionWithAnInvalidSessionId() { $requestBody = '{"method":"queue-move-bottom","arguments":{"ids":[42,1337]}}'; $invalidSessionId = uniqid(); $this->sendRequest($requestBody, $invalidSessionId)->andThrow($this->generateCSRFException()); try { $this->rpcClient->queueMoveBottom($invalidSessionId, [42, 1337]); } catch (CSRFException $e) { $this->assertSame($this->sessionId, $e->getSessionId()); } }