summaryrefslogtreecommitdiffstats
path: root/tests/command/explore.bats
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2022-05-29 11:25:38 +0200
committerGitHub <noreply@github.com>2022-05-29 11:25:38 +0200
commiteca96ad37d89b442ae4e0463ec8f7a5bee3007f1 (patch)
tree81b9e611ea846b9931016cea3bc9dcaa1c85e4a1 /tests/command/explore.bats
parent86e01a91f3b3fa1220adb899fa56b8bd53720d34 (diff)
Enable API testing (#1699)
Enable API testing with local php server. This adds many tests for API v1.2, more still possible. Which increased the quality of news already. Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'tests/command/explore.bats')
-rw-r--r--tests/command/explore.bats12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/command/explore.bats b/tests/command/explore.bats
new file mode 100644
index 000000000..7407dc8a8
--- /dev/null
+++ b/tests/command/explore.bats
@@ -0,0 +1,12 @@
+#!/usr/bin/env bats
+
+load "helpers/settings"
+
+TESTSUITE="Explore"
+
+@test "[$TESTSUITE] Create new" {
+ curl --fail "$NC_FEED"
+
+ run ./occ news:generate-explore --votes 100 "$NC_FEED"
+ [ "$status" -eq 0 ]
+} \ No newline at end of file