summaryrefslogtreecommitdiff
path: root/internal/api/api_integration_test.go
diff options
context:
space:
mode:
authorGravatar Pontus Jensen Karlsson <pontus@jensenkarlsson.se> 2024-08-08 04:48:41 +0000
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-08-12 20:20:44 -0700
commitade412f45352bc7491d3a3a6be0a019466431955 (patch)
tree22709bea0a515edab835cdc785536a267e378d76 /internal/api/api_integration_test.go
parent6fb7e84ce1bb38b386a6f6effd1bb3b09d2b72e0 (diff)
downloadv2-ade412f45352bc7491d3a3a6be0a019466431955.tar.gz
v2-ade412f45352bc7491d3a3a6be0a019466431955.tar.zst
v2-ade412f45352bc7491d3a3a6be0a019466431955.zip
fix: Honor hide_globally when creating a new feed through the api
TestGetGlobalEntriesEndpoint was failing because CreateFeed ignored HideGlobally, this fixes that.
Diffstat (limited to 'internal/api/api_integration_test.go')
-rw-r--r--internal/api/api_integration_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/api/api_integration_test.go b/internal/api/api_integration_test.go
index df8d93a0..c4bef142 100644
--- a/internal/api/api_integration_test.go
+++ b/internal/api/api_integration_test.go
@@ -2011,6 +2011,16 @@ func TestGetGlobalEntriesEndpoint(t *testing.T) {
t.Fatal(err)
}
+ feedIDEntry, err := regularUserClient.Feed(feedID)
+
+ if err != nil {
+ t.Fatal(err)
+ }
+
+ if feedIDEntry.HideGlobally != true {
+ t.Fatalf(`Expected feed to have globally_hidden set to true, was false.`)
+ }
+
/* Not filtering on GloballyVisible should return all entries */
feedEntries, err := regularUserClient.Entries(&miniflux.Filter{FeedID: feedID})