Closed amenk closed 6 years ago
I have a unit test with the following code:
$cart = CartBuilder::forCurrentSession() ->withSimpleProduct("proof") ->build();
And get
Class 'Magento\TestFramework\Helper\Bootstrap' not found vendor/tddwizard/magento2-fixtures/src/Checkout/CartBuilder.php:39
I am using Magento 2.2
maybe I use the library wrong?
Or it's a Magento 2.2 problem?
The code seems to have moved?
https://github.com/magento/magento2/tree/2.2-develop/lib/internal/Magento/Framework/TestFramework
https://magento.stackexchange.com/questions/120968/objectmanager-is-unusable-for-me-in-magento-2-unit-tests
The questions I am asking myself: Can I run this in unit tests or only during integration tests?
YES :-) RTFM ...
But still I think the library reference is wrong?
I have a unit test with the following code:
And get
I am using Magento 2.2
maybe I use the library wrong?
Or it's a Magento 2.2 problem?
The code seems to have moved?
https://github.com/magento/magento2/tree/2.2-develop/lib/internal/Magento/Framework/TestFramework