Running ‘testthat.R’ [6s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Copyright (C) 2019 LINE Corporation
  > #
  > # conflr is free software; you can redistribute it and/or modify it under the
  > # terms of the GNU General Public License as published by the Free Software
  > # Foundation, version 3.
  > #
  > # conflr is distributed in the hope that it will be useful, but WITHOUT ANY
  > # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  > # A PARTICULAR PURPOSE. See <http://www.gnu.org/licenses/> for more details.
  > 
  > library(testthat)
  > library(conflr)
  > 
  > test_check("conflr")
  Saving _problems/test-embed-images-58.R
  Saving _problems/test-front-matter-39.R
  Saving _problems/test-front-matter-94.R
  Saving _problems/test-front-matter-138.R
  Saving _problems/test-front-matter-156.R
  Saving _problems/test-front-matter-172.R
  Saving _problems/test-front-matter-200.R
  Saving _problems/test-invalid-credential-36.R
  Saving _problems/test-render-41.R
  Saving _problems/test-render-71.R
  Saving _problems/test-toc-41.R
  Saving _problems/test-toc-87.R
  Saving _problems/test-utils-82.R
  Saving _problems/test-utils-98.R
  [ FAIL 14 | WARN 0 | SKIP 4 | PASS 92 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-content.R:12:3', 'test-content.R:42:3',
    'test-contentbody.R:12:3', 'test-utils.R:25:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-embed-images.R:58:3'): embed_images() works for non-ASCII dir ──
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─conflr:::do_confl_create_post_from_Rmd(...) at test-embed-images.R:58:3
   2.   └─testthat::with_mock(...) at ./helpers.R:10:3
   3.     └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   4.       └─lifecycle:::deprecate_stop0(msg)
   5.         └─rlang::cnd_signal(...)
  ── Error ('test-front-matter.R:39:3'): confluence_settings can be set from front-matter ──
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─conflr:::do_confl_create_post_from_Rmd(confl_upload_mock, Rmd_with_all_defaults) at test-front-matter.R:39:3
   2.   └─testthat::with_mock(...) at ./helpers.R:10:3
   3.     └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   4.       └─lifecycle:::deprecate_stop0(msg)
   5.         └─rlang::cnd_signal(...)
  ── Error ('test-front-matter.R:94:3'): confluence_settings$title is prior to title ──
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─conflr:::do_confl_create_post_from_Rmd(confl_upload_mock, Rmd_with_two_titles) at test-front-matter.R:94:3
   2.   └─testthat::with_mock(...) at ./helpers.R:10:3
   3.     └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   4.       └─lifecycle:::deprecate_stop0(msg)
   5.         └─rlang::cnd_signal(...)
  ── Error ('test-front-matter.R:138:3'): confluence_settings can be specified partially ──
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─conflr:::do_confl_create_post_from_Rmd(confl_upload_mock, Rmd_with_some_settings) at test-front-matter.R:138:3
   2.   └─testthat::with_mock(...) at ./helpers.R:10:3
   3.     └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   4.       └─lifecycle:::deprecate_stop0(msg)
   5.         └─rlang::cnd_signal(...)
  ── Error ('test-front-matter.R:153:3'): supported_syntax_highlighting can be set via option ──
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. ├─withr::with_options(...) at test-front-matter.R:153:3
   2. │ └─base::force(code)
   3. └─conflr:::do_confl_create_post_from_Rmd(confl_upload_mock, Rmd_with_some_settings)
   4.   └─testthat::with_mock(...) at ./helpers.R:10:3
   5.     └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   6.       └─lifecycle:::deprecate_stop0(msg)
   7.         └─rlang::cnd_signal(...)
  ── Error ('test-front-matter.R:172:3'): confluence_settings raise an error when any of mandatory parameters are missing ──
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─conflr:::do_confl_create_post_from_Rmd(...) at test-front-matter.R:172:3
   2.   └─testthat::with_mock(...) at ./helpers.R:10:3
   3.     └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   4.       └─lifecycle:::deprecate_stop0(msg)
   5.         └─rlang::cnd_signal(...)
  ── Error ('test-front-matter.R:198:3'): confluence_settings are accepted for backward-compatibility ──
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-front-matter.R:198:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─conflr:::do_confl_create_post_from_Rmd(confl_upload_mock, Rmd_deprecated)
    7.   └─testthat::with_mock(...) at ./helpers.R:10:3
    8.     └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
    9.       └─lifecycle:::deprecate_stop0(msg)
   10.         └─rlang::cnd_signal(...)
  ── Failure ('test-invalid-credential.R:26:3'): confluence_document() stops early ──
  `with_mock(...)` threw an error with unexpected message.
  Expected match: "Invalid credentials!"
  Actual message: "`with_mock()` was deprecated in testthat 3.2.0 and is now defunct.\nℹ Please use `with_mocked_bindings()` instead."
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-invalid-credential.R:26:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─testthat::with_mock(...)
   7.   └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   8.     └─lifecycle:::deprecate_stop0(msg)
   9.       └─rlang::cnd_signal(...)
  ── Error ('test-render.R:31:3'): rmarkdown::render() works when no space_key ───
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─testthat::with_mock(...) at test-render.R:31:3
   2.   └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   3.     └─lifecycle:::deprecate_stop0(msg)
   4.       └─rlang::cnd_signal(...)
  ── Error ('test-render.R:64:3'): rmarkdown::render() aborts when no space_key ──
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─testthat::with_mock(...) at test-render.R:64:3
   2.   └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   3.     └─lifecycle:::deprecate_stop0(msg)
   4.       └─rlang::cnd_signal(...)
  ── Error ('test-toc.R:32:3'): TOC is added when set via argument ───────────────
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─testthat::with_mock(...) at test-toc.R:32:3
   2.   └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   3.     └─lifecycle:::deprecate_stop0(msg)
   4.       └─rlang::cnd_signal(...)
  ── Error ('test-toc.R:77:3'): TOC is added when set via front-matter ───────────
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─testthat::with_mock(...) at test-toc.R:77:3
   2.   └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   3.     └─lifecycle:::deprecate_stop0(msg)
   4.       └─rlang::cnd_signal(...)
  ── Error ('test-utils.R:77:3'): try_get_existing_page_id() works ───────────────
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─testthat::with_mock(...) at test-utils.R:77:3
   2.   └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   3.     └─lifecycle:::deprecate_stop0(msg)
   4.       └─rlang::cnd_signal(...)
  ── Error ('test-utils.R:93:3'): try_get_personal_space_key() handles personal spaces ──
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
  ℹ Please use `with_mocked_bindings()` instead.
  Backtrace:
      ▆
   1. └─testthat::with_mock(...) at test-utils.R:93:3
   2.   └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
   3.     └─lifecycle:::deprecate_stop0(msg)
   4.       └─rlang::cnd_signal(...)
  
  [ FAIL 14 | WARN 0 | SKIP 4 | PASS 92 ]
  Error:
  ! Test failures.
  Execution halted