Skip to content

Commit 1487c69

Browse files
authored
Warning Undefined array key "parent_id" on POST (#45131)
1 parent bf5bfe4 commit 1487c69

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/System/integration/api/com_newsfeed/Categories.cy.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ describe('Test that newsfeed categories API endpoint', () => {
1515
});
1616

1717
it('can create a category', () => {
18-
cy.api_post('/newsfeeds/categories', { title: 'automated test feed category', description: 'automated test feed category description' })
18+
cy.api_post('/newsfeeds/categories', {
19+
title: 'automated test feed category',
20+
description: 'automated test feed category description',
21+
parent_id: 1,
22+
extension: 'com_newsfeeds',
23+
})
1924
.then((response) => {
2025
cy.wrap(response).its('body').its('data').its('attributes')
2126
.its('title')

0 commit comments

Comments
 (0)