tests/testthat/test_rt_ticket_create.R

context("ticket/create")

test_that("a ticket can be created", {
  testthat::skip_on_cran()
  skip_unless_integration()

  ticket <- rt_ticket_create("General")

  ticket <- rt_ticket_create("General",
                             "root@localhost",
                             "Test")

  testthat::expect_is(ticket, "numeric")
})

Try the rt package in your browser

Any scripts or data that you put into this service are public.

rt documentation built on May 15, 2021, 9:06 a.m.