User tests: Successful: Unsuccessful:
follow-up discussion at pr #46657 .
Refactor db_createCategory to dynamically set lft and rgt values based on existing categories. Update db_deleteCategory to adjust lft and rgt after deletion.
run the test suite
#__categories table don't respect nested set table
#__categories table respect nested set table
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | JavaScript Unit Tests |
| Labels |
Added:
Unit/System Tests
PR-5.4-dev
|
||
| Title |
|
||||||
I have tested this item ✅ successfully on 2d207b4
* Tested with JBT using MariaDB
administrator/components/com_categories/Category.cy.js (with inserted cy.wait) and seen db_createCategory creates lft=1 and rgt=0 categorygh pr checkout 48133
administrator/components/com_categories/Category.cy.js (with inserted cy.wait) and seen db_createCategory creates lft=27 and rgt=28 and ROOT is set rgt=29@alikon Thank you very much for your contribution 👍
Could you please extend tests/System/README.md file? After line 237, in the list of available commands:
- **db_deleteMenuItem** - Deletes a menu item with the given title
- **db_deleteCategory** - Deletes a category with the given title
| Labels |
Added:
bug
|
||
| Category | JavaScript Unit Tests | ⇒ | Unit Tests Repository JavaScript |
Set RTC as one maintainer review and one test successfully
| Status | Pending | ⇒ | Ready to Commit |
RTC
RTC
| Labels |
Added:
RTC
|
||
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-07-23 19:11:15 |
| Closed_By | ⇒ | richard67 |
I have tested this item ✅ successfully on 2d207b4
* Tested with JBT using MariaDB
administrator/components/com_categories/Category.cy.js(with insertedcy.wait) and seendb_createCategorycreates lft=1 and rgt=0 categorygh pr checkout 48133administrator/components/com_categories/Category.cy.js(with insertedcy.wait) and seendb_createCategorycreates lft=27 and rgt=28 and ROOT is set rgt=29This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48133.