Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit08f96fd

Browse files
committed
chore(move-article): improve test
1 parentb275c7b commit08f96fd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

‎test/groupher_server/cms/article_community/blog_test.exs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ defmodule GroupherServer.Test.CMS.ArticleCommunity.Blog do
189189
assertblog.communities|>length==1
190190

191191
assertexist_in?(blackhole_community,blog.communities)
192+
193+
filter=%{page:1,size:10,community:blackhole_community.raw}
194+
{:ok,paged_articles}=CMS.paged_articles(:blog,filter)
195+
196+
assertexist_in?(blog,paged_articles.entries)
197+
assertpaged_articles.total_count===1
192198
end
193199

194200
test"blog can be move to blackhole with tags",~m(community blog_attrs user)ado

‎test/groupher_server/cms/article_community/post_test.exs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ defmodule GroupherServer.Test.CMS.ArticleCommunity.Post do
189189
assertpost.communities|>length==1
190190

191191
assertexist_in?(blackhole_community,post.communities)
192+
193+
filter=%{page:1,size:10,community:blackhole_community.raw}
194+
{:ok,paged_articles}=CMS.paged_articles(:post,filter)
195+
196+
assertexist_in?(post,paged_articles.entries)
197+
assertpaged_articles.total_count===1
192198
end
193199

194200
test"post can be move to blackhole with tags",~m(community post_attrs user)ado

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp