mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2024-11-24 22:42:46 +01:00
eca96ad37d
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>
12 lines
207 B
Bash
12 lines
207 B
Bash
#!/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 ]
|
|
} |