summaryrefslogtreecommitdiffstats
path: root/tests/command/folders.bats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/command/folders.bats')
-rw-r--r--tests/command/folders.bats8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/command/folders.bats b/tests/command/folders.bats
index 48b15f05b..2568c13c9 100644
--- a/tests/command/folders.bats
+++ b/tests/command/folders.bats
@@ -5,10 +5,10 @@ load "helpers/settings"
TESTSUITE="Folders"
teardown() {
- ID=$(./occ news:folder:list 'admin' | grep "Something-${BATS_SUITE_TEST_NUMBER}" -1 | head -1 | grep -oE '[0-9]*')
- if [ -n "$ID" ]; then
- ./occ news:folder:delete "$user" "$ID"
- fi
+ ID_LIST=($(./occ news:feed:list 'admin' | grep -Po '"id": \K([0-9]+)' | tr '\n' ' '))
+ for ID in $ID_LIST; do
+ ./occ news:feed:delete "$user" "$ID"
+ done
}
@test "[$TESTSUITE] Create new" {