Redaxscript\Admin\View\Helper\Option::getRobotArray PHP Method

getRobotArray() public static method

get the robot array
Since: 3.0.0
public static getRobotArray ( ) : array
return array
    public static function getRobotArray()
    {
        return [Language::get('select') => 'select', Language::get('all') => 1, Language::get('index') => 2, Language::get('follow') => 3, Language::get('index_no') => 4, Language::get('follow_no') => 5, Language::get('none') => 0];
    }

Usage Example

Example #1
0
 /**
  * testGetRobotArray
  *
  * @since 3.0.0
  *
  * @param array $expectArray
  *
  * @dataProvider providerOption
  */
 public function testGetRobotArray($expectArray = [])
 {
     /* actual */
     $actualArray = Helper\Option::getRobotArray();
     /* compare */
     $this->assertEquals($expectArray['robot'], $actualArray);
 }
All Usage Examples Of Redaxscript\Admin\View\Helper\Option::getRobotArray