I tried to create a new model, different from what Magento has and I was unable to create a fixture for that entity when I wanted to create an integration test for a method. I also tried to create a fixture for an out-of-the-box model (Catalog Product) and I was able to access that entity in the test method, so I was able to assert properties.
I am using:
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
to create new objects. This works fine for core classes like:
->create(\Magento\Catalog\Model\Product::class)
But when I try to use it on a custom made module the data is not saved and I cannot load it inside my test. Is there an extra step or something we have to take in order to achieve the desired outcome?