Bulletin of Network Engineer and Informatics (BUFNETS)
Vol. 4 No. 2 (2026): BUFNETS (Bulletin of Network Engineer and Informatics) October 2026

Feature-Level Testing of a Multi-Tenant REST API for an MSME E-Commerce Platform: A Laravel Case Study

Tri Sandhika Jaya (Politeknik Negeri Lampung)
Rima Maulini (Politeknik Negeri Lampung)
Dwirgo Sahlinal (Politeknik Negeri Lampung)
Fathir Kausar (Politeknik Negeri Lampung)
Muhammad Putara Meca Abzanro (Politeknik Negeri Lampung)



Article Info

Publish Date
24 Oct 2026

Abstract

MSME e-commerce applications rely on REST APIs as the contract between back-end systems and mobile clients; the two most damaging defect classes at this layer are cross-tenant data leakage (broken object-level authorization, BOLA) and violations of business rules guarding financial integrity. This case study evaluates in-framework feature testing of the REST API of a Laravel 13 MSME e-commerce ERP platform exposing 57 API operations secured with Sanctum token authentication and role-based access control. The method is a four-concern test design (nominal, validation, authentication-authorization, business rules) executed by PHPUnit against an in-memory SQLite database, measured through operation coverage and assertion classification. The results show that 85 test cases with 229 assertions achieve 100% operation coverage (57/57) at a median execution time of 4.3 seconds; 37 of 102 status assertions (36.3%) are refusal assertions that anchor cross-tenant isolation at 404, mass-assignment rejection, post-logout token revocation, refusal of illegal state transitions, and stock-restoration idempotency under sequential duplicate rejection. The measurement process also uncovered and corrected a defect in static coverage extraction. The study concludes that such a suite constitutes low-cost, domain-specific regression oracles rather than evidence of absence of defects; mutation testing and a comparison with automated testing tools remain future work.

Copyrights © 2026






Journal Info

Abbrev

bufnets

Publisher

Subject

Computer Science & IT

Description

The Journal invites original articles and is not simultaneously submitted to another journal or conference. Scopes: Information Technology: Software Engineering, Knowledge and Data Mining, Multimedia Technologies, Mobile Computing, Parallel/Distributed Computing, Computer Graphics, Virtual Reality, ...