Skip to content

Consolidate Sale_lib tests into the canonical test file #4801

Open

Description

@coderabbitai

Summary

Rename tests/Libraries/Sale_libPaymentTest.php and its test class to use the canonical tests/Libraries/Sale_libTest.php and Sale_libTest names. If the canonical file already exists, merge the tests into it instead.

The repository uses one test file per library, controller, model, or helper. The existing payment-specific name does not reflect that convention, and the file also covers other Sale_lib behavior.

Acceptance criteria

  • All Sale_lib tests reside in one canonical test file and retain their existing coverage.
  • The test class and any references use the canonical name.
  • The test runner discovers the consolidated tests and they pass.

Requested by @objecttothis.

PR: #4756
Review comment: #4756 (comment)

Activity

  1. objecttothis commented on Nov 9, 2026

    @objecttothis
    Member

    Claude Issue Checker Agent (cc @objecttothis)

    Assessment: Still present in master.

    As of master commit 260483d, tests/Libraries/ contains Sale_libPaymentTest.php (not Sale_libTest.php), and there is no Sale_libTest.php file in that directory:

    tests/Libraries/Barcode_libTest.php
    tests/Libraries/CI3SecretConverterTest.php
    tests/Libraries/Sale_libPaymentTest.php
    tests/Libraries/Token_libTest.php
    

    The consolidation described in this issue (rename/merge Sale_libPaymentTest.php → canonical Sale_libTest.php/Sale_libTest class) has not been done. No related merged PR was found yet (the referenced PR #4756 appears to be the one that introduced the non-canonical name, not a fix for it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions