objectManager = Bootstrap::getObjectManager(); } /** * @magentoDataFixture Magento/Sales/_files/order_with_customer_and_multiple_order_items.php */ public function testDefaultFormatterIsAppliedWhenBasicIntegration() { /** @var Session $customerSession */ $customerSession = $this->objectManager->get(Session::class); $customerSession->loginById(1); /** @var LastOrderedItems $customerDataSectionSource */ $customerDataSectionSource = $this->objectManager->get(LastOrderedItems::class); $data = $customerDataSectionSource->getSectionData(); $this->assertEquals( LastOrderedItems::SIDEBAR_ORDER_LIMIT, count($data['items']), 'Section items count should not be greater then ' . LastOrderedItems::SIDEBAR_ORDER_LIMIT ); } }