Esempio n. 1
0
 /**
  * Test the Gender::getGenderOptions() method.
  * @return void
  */
 public function testGetGenderOptions()
 {
     $options = $this->_block->getGenderOptions();
     $this->assertInternalType('array', $options);
     $this->assertNotEmpty($options);
     $this->assertContainsOnlyInstancesOf('Magento\\Customer\\Model\\Data\\Option', $options);
 }
Esempio n. 2
0
 /**
  * Test the Gender::getGenderOptions() method.
  * @return void
  */
 public function testGetGenderOptions()
 {
     $options = [['label' => __('Male'), 'value' => 'M'], ['label' => __('Female'), 'value' => 'F']];
     $this->_attribute->expects($this->once())->method('getOptions')->will($this->returnValue($options));
     $this->assertSame($options, $this->_block->getGenderOptions());
 }