cli – Error: Call to a member function getUrl() on null PHP UNIT Test Cases Magento 2.X

Please check below PHP Unit Test Case code:

Error Error: Call to a member function getUrl() on null while generating code coverage.

 <?php
    
    namespace VendorModuleTestUnitBlock;
    use MagentoFrameworkTestFrameworkUnitHelperObjectManager;
    use VendorModuleBlockCustomer;
    use MagentoFrameworkUrlInterface;
    
    class CustomerTest extends PHPUnitFrameworkTestCase
    {
        private $objectManager;
    
        protected $urlBuilderMock;

        private $customer;
    
        protected $context;
        
        protected function setUp(): void
        {
            $this->objectManager = new ObjectManager($this);
            
            $this->context = $this->createPartialMock(MagentoFrameworkViewElementTemplateContext::class);
    
            $this->urlBuilderMock = $this->getMockBuilder(UrlInterface::class)
                ->getMockForAbstractClass();
    
            $this->customer = $this->objectManager->getObject(Customer::class, (
                'context' => $this->context,
                "urlBuilder" => $this->urlBuilderMock
            ));
    
        }
    
    
         public function testGetBaseUrl()
         {
              $url = "testurl";
              $validateData = "test....";
              $this->urlBuilderMock->expects($this->once())->method('getUrl')->with($validateData)->willReturn($url);
              $this->assertEquals($url, $this->customer->getBaseUrl());
         }
    
    }

If anyone understand the issue please reply, Thanks.