Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
484B

  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.ReportNoteTest do
  5. alias Pleroma.ReportNote
  6. use Pleroma.DataCase
  7. import Pleroma.Factory
  8. test "create/3" do
  9. user = insert(:user)
  10. report = insert(:report_activity)
  11. assert {:ok, note} = ReportNote.create(user.id, report.id, "naughty boy")
  12. assert note.content == "naughty boy"
  13. end
  14. end