/** * Neither Region, nor RegionId have been set on the form data Object that's set on the block so a * null value is expected. */ public function testGetRegionNull() { $formData = new \Magento\Framework\DataObject(); $this->_block->setData(self::FORM_DATA, $formData); $this->assertNull($this->_block->getRegion()); }