What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi all, when I run codeception, I get this error ```In FactoryResolver.php line 38: Spryker Kerne
Hi all,
when I run codeception, I get this error
In FactoryResolver.php line 38: Spryker Kernel Exception Can not resolve ModuleBusinessFactory in Business layer for your module "Module" You can fix this by adding the missing Factory to your module. E.g. Pyz\Zed\Module\Business\ModuleBusinessFactory
The thing is that this class exists Pyz\Zed\Module\Business\ModuleBusinessFactory
What am I missing?
Comments
-
Hi Ahmad,
not sure, but I saw such error when the custom namespace like βPyzβ was not added to the config file, this key:$config[KernelConstants::PROJECT_NAMESPACES]
So I would suggest that the problem can be connected with configuration of codeception
0 -
Check also
codeception.yml
maybe this module is not enabled:
- \SprykerTest\Shared\Testify\Helper\LocatorHelper: projectNamespaces: ['Pyz']
and by coverage this folder is not whitelisted
whitelist: { include: ['../../../../src/*'] }
0 -
Hi Anton,
thank you for your responseLet me give some context here π the test used to work before, now after I upgraded the Kernel from 3.41.1 to 3.50.0 I get this error!
This one is set in config_default
$config[KernelConstants::PROJECT_NAMESPACES] = [ 'Pyz' ];
0 -
the config looks correct, to be sure check also
codeception.yml
as I wrote above.
But if itβs connected with kernel update π, I donβt know what could be the problem, you need to check release notes, maybe you will find some things which you need to update0 -
What version of spryker/testify do you use?
Maybe updating will help: https://github.com/spryker/testify/releases0 -
how does updating testify affect this?
0 -
why do you suspect it?
0 -
Because it'll be used for resolving the Factory in a test.
0 -
I see .. thanks for the clarification π
0 -
Thank you it works now π
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random