/** * @magentoDataFixture Magento/Customer/_files/customer.php */ public function testToHtml() { $this->customerSession->setCustomerId(1); $html = $this->block->toHtml(); $this->assertContains("<div class=\"block block-dashboard-welcome\">", $html); $this->assertContains("<strong>Hello, Firstname Lastname!</strong>", $html); }