Sonata\Test\CustomerBundle\Block\RecentCustomersBlockServiceTest::testGetName PHP Method

testGetName() public method

public testGetName ( )
    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());
    }
RecentCustomersBlockServiceTest