Beispiel #1
0
 public function testGetSuffixOptionsEmpty()
 {
     $customer = $this->getMockBuilder('\\Magento\\Customer\\Api\\Data\\CustomerInterface')->getMockForAbstractClass();
     $this->_block->setObject($customer);
     $this->_options->expects($this->once())->method('getNameSuffixOptions')->will($this->returnValue([]));
     $this->assertEmpty($this->_block->getSuffixOptions());
 }
Beispiel #2
0
 public function testGetSuffixOptionsEmpty()
 {
     $customer = $this->_objectManager->getObject('Magento\\Customer\\Service\\V1\\Data\\CustomerBuilder')->setSuffix('  <' . self::SUFFIX . '>  ')->create();
     $this->_block->setObject($customer);
     $this->_customerHelper->expects($this->once())->method('getNameSuffixOptions')->will($this->returnValue([]));
     $this->assertEmpty($this->_block->getSuffixOptions());
 }