Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions
YesNoTest Class Reference
Inheritance diagram for YesNoTest:

Public Member Functions

 executeDataProvider ()
 

Protected Member Functions

 setUp ()
 

Detailed Description

Definition at line 15 of file YesNoTest.php.

Member Function Documentation

◆ executeDataProvider()

executeDataProvider ( )
Returns
array

Definition at line 100 of file YesNoTest.php.

101  {
102  return [
103  ['yes', true],
104  ['Yes', true],
105  ['YES', true],
106  ['y', true],
107  ['Y', true],
108  ['ya', false],
109  ['no', false],
110  ['NO', false],
111  ['n', false],
112  ['N', false],
113  ['Not', false],
114  ['anykey', false]
115  ];
116  }

◆ setUp()

setUp ( )
protected

{}

Definition at line 45 of file YesNoTest.php.

46  {
47  $this->inputMock = $this->getMockBuilder(InputInterface::class)
48  ->getMockForAbstractClass();
49  $this->outputMock = $this->getMockBuilder(OutputInterface::class)
50  ->getMockForAbstractClass();
51  $this->questionFactoryMock = $this->getMockBuilder(QuestionFactory::class)
52  ->disableOriginalConstructor()
53  ->setMethods(['create'])
54  ->getMock();
55  $this->questionHelperMock = $this->getMockBuilder(QuestionHelper::class)
56  ->disableOriginalConstructor()
57  ->getMock();
58 
59  $this->questionPerformer = new YesNo($this->questionHelperMock, $this->questionFactoryMock);
60  }

The documentation for this class was generated from the following file: