1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2024-11-24 22:42:46 +01:00
Nextcloud-News/tests/command/explore.bats
Benjamin Brahmer eca96ad37d
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>
2022-05-29 11:25:38 +02:00

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 ]
}