Sonata\CustomerBundle\Block\RecentCustomersBlockService::getName PHP Method

getName() public method

public getName ( )
    public function getName()
    {
        return 'Recent Customers';
    }

Usage Example

 public function testGetName()
 {
     $engineInterfaceMock = $this->getMockBuilder('Symfony\\Bundle\\FrameworkBundle\\Templating\\EngineInterface')->disableOriginalConstructor()->getMock();
     $customerManagerInterfaceMock = $this->getMockBuilder('Sonata\\Component\\Customer\\CustomerManagerInterface')->disableOriginalConstructor()->getMock();
     $block = new RecentCustomersBlockService('test', $engineInterfaceMock, $customerManagerInterfaceMock);
     $this->assertEquals('Recent Customers', $block->getName());
 }