Kraken\_Unit\Channel\Record\ResponseRecordStorageTest::testApiExistsResponse_ReturnsTrue_WhenResponseDoesExist PHP Method

testApiExistsResponse_ReturnsTrue_WhenResponseDoesExist() public method

    public function testApiExistsResponse_ReturnsTrue_WhenResponseDoesExist()
    {
        $obj = $this->createResponseRecordStorage();
        $pid = 'pid';
        $alias = 'alias';
        $this->setProtectedProperty($obj, 'reps', [$pid => new ResponseRecord($pid, $alias)]);
        $exists = $this->callProtectedMethod($obj, 'existsResponse', [$pid]);
        $this->assertTrue($exists);
    }