Skip to content

Fix error thrown by TravisCI for develop branch #7746

@Ctucker9233

Description

@Ctucker9233

Anyone who creates a branch off of develop and runs a TravisCI build will experience this error:

  1. Magento\Customer\Model\GroupManagementTest::testGetDefaultGroupWithNonDefaultStoreId
    Magento\Framework\Exception\NoSuchEntityException: No such entity with groupId = , storeId = 11

Preconditions

Magento 2 develop branch

Steps to reproduce

  1. Create a branch of Magento Develop
  2. Trigger TravisCI Build with a simple pull request, like adding a comment

Expected result

TravisCI build passes all checks

Actual result

TravisCI Build fails 1 check for php5.6 and php7 with error: 1) Magento\Customer\Model\GroupManagementTest::testGetDefaultGroupWithNonDefaultStoreId
Magento\Framework\Exception\NoSuchEntityException: No such entity with groupId = , storeId = 11

Proposed solution: a function that checks if groupID and store ID exists and if not, use the default groupID and storeID. The check for groupID and StoreID seems to be in place because a NoSuchEntityException is thrown. So if possible, just add a "use default groupID and storeID" method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions