Skip to content
This repository was archived by the owner on May 27, 2023. It is now read-only.
This repository was archived by the owner on May 27, 2023. It is now read-only.

Wrong Modulename detection in \EcomDev_PHPUnit_Model_App::getModuleNameByClassName #101

@sgrund

Description

@sgrund

Modulename detection is not working correctly when Modules like these exists:

N98_Catalog
N98_CatalogGrouped

        foreach ($this->getConfig()->getNode('modules')->children() as $module) {
            if (strpos($className, $module->getName()) === 0) {
               $moduleName = $module->getName();
               break;
            }
        }

By using strpos, the function will always return N98_Catalog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions