Kraken\_Unit\Channel\Record\RequestRecordStorageTest::testApiExistsRequest_ReturnsTrue_WhenRequestDoesExist PHP Method

testApiExistsRequest_ReturnsTrue_WhenRequestDoesExist() public method

    public function testApiExistsRequest_ReturnsTrue_WhenRequestDoesExist()
    {
        $obj = $this->createRequestRecordStorage();
        $pid = 'pid';
        $this->setProtectedProperty($obj, 'reqs', [$pid => new RequestRecord($pid)]);
        $exists = $this->callProtectedMethod($obj, 'existsRequest', [$pid]);
        $this->assertTrue($exists);
    }