Beispiel #1
0
 public function testGetPrefixOptionsEmpty()
 {
     $customer = $this->getMockBuilder('\\Magento\\Customer\\Api\\Data\\CustomerInterface')->getMockForAbstractClass();
     $this->_block->setObject($customer);
     $this->_options->expects($this->once())->method('getNamePrefixOptions')->will($this->returnValue([]));
     $this->assertEmpty($this->_block->getPrefixOptions());
 }
Beispiel #2
0
 public function testGetPrefixOptionsEmpty()
 {
     $customer = $this->_objectManager->getObject('Magento\\Customer\\Service\\V1\\Data\\CustomerBuilder')->setPrefix(self::PREFIX)->create();
     $this->_block->setObject($customer);
     $this->_customerHelper->expects($this->once())->method('getNamePrefixOptions')->will($this->returnValue([]));
     $this->assertEmpty($this->_block->getPrefixOptions());
 }