grepl("Namespace in Imports field not imported from", r$revdep_check_task_spec$rev.both.error$warnings$issues) is not TRUE

`actual`:   FALSE
`expected`: TRUE 
TRUE

create_temp_repo <- function(dir, repo_path) {
dir.create(ctburl <- utils::contrib.url(repo_path, type = "source"), recursive = TRUE)
sources <- list.files(dir, pattern = "^.*\\.tar\\.gz$", full.names = TRUE)
vapply(sources, file.copy, FUN.VALUE = logical(1), to = ctburl)
sources_old <- test_path("testing_pkgs", "revdeps", "v1")
sources_new <- test_path("testing_pkgs", "revdeps", "v2")
test_that("check_rev_deps works for package with no revdeps", {
# Ensure source installation to make sure test works also on mac and windows
test_that("check_rev_deps works for package with one breaking change", {
grepl("Namespace in Imports field not imported from",
test_that("check_rev_deps works for a package without release version", {
n = 2L, repos = repo, env = c("NOT_CRAN" = "false", options::opt("check_envvars"))))
test_that("check_dev_rev_deps works as expected", {

"check_rev_deps works for package with no revdeps"
"check_rev_deps works for package with one breaking change"
"Namespace in Imports field not imported from"
"check_rev_deps works for a package without release version"

check_rev_deps works for package with one breaking change

r$check_task_spec$`pkg.none (dev)`$notes$issues has length 2, not length 0.

check_rev_deps works for a package without release version

r$check_task_spec$`rev.both.error (dev)`$notes$issues has length 1, not length 0.

r$check_task_spec$`rev.both.error (dev)`$warnings$issues has length 2, not length 1.

grepl("Namespace in Imports field not imported from", r$check_task_spec$`rev.both.error (dev)`$warnings$issues) is not TRUE

`actual`:   FALSE FALSE
`expected`: TRUE       
FALSE
TRUE

grepl("Namespace in Imports field not imported from", r$check_task_spec$`rev.both.ok (dev)`$notes$issues) is not TRUE

`actual`:   FALSE
`expected`: TRUE

r$check_task_spec$`rev.both.ok (dev)`$warnings$issues has length 1, not length 0.