◆ setUp()
  
  
      
        
          | RequestValidationHelperTest::setUp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 29 of file RequestValidationHelperTest.php.
   33         $lng_mock = $this->getMockBuilder(
ILIAS\Language\Language::class)
    34             ->disableOriginalConstructor()
 Interface Observer  Contains several chained tasks and infos about them. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ test_checkPointsFromRequest_shouldAbort_whenEmptyData()
      
        
          | RequestValidationHelperTest::test_checkPointsFromRequest_shouldAbort_whenEmptyData  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 45 of file RequestValidationHelperTest.php.
References $data.
   48         $expected = 
'msg_input_is_required';
    49         $actual = $this->
object->checkPointsInput(
$data, 
true);
    50         $this->assertEquals($expected, $actual);
 
 
 
 
◆ test_checkPointsFromRequest_shouldAbort_whenEmptyPoints()
      
        
          | RequestValidationHelperTest::test_checkPointsFromRequest_shouldAbort_whenEmptyPoints  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 53 of file RequestValidationHelperTest.php.
References $data.
   55         $data = [
'points' => []];
    56         $expected = 
'msg_input_is_required';
    57         $actual = $this->
object->checkPointsInput(
$data, 
true);
    58         $this->assertEquals($expected, $actual);
 
 
 
 
◆ test_checkPointsFromRequest_shouldAbort_whenNonNumericPoints()
      
        
          | RequestValidationHelperTest::test_checkPointsFromRequest_shouldAbort_whenNonNumericPoints  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 69 of file RequestValidationHelperTest.php.
References $data.
   71         $data = [
'points' => [1, 5.2, 
'not a number']];
    72         $expected = 
'form_msg_numeric_value_required';
    73         $actual = $this->
object->checkPointsInput(
$data, 
false);
    74         $this->assertEquals($expected, $actual);
 
 
 
 
◆ test_checkPointsFromRequest_shouldAbort_whenZeroPoints()
      
        
          | RequestValidationHelperTest::test_checkPointsFromRequest_shouldAbort_whenZeroPoints  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 85 of file RequestValidationHelperTest.php.
References $data.
   87         $data = [
'points' => [0, -6]];
    88         $expected = 
'enter_enough_positive_points';
    89         $actual = $this->
object->checkPointsInputEnoughPositive(
$data, 
true);
    90         $this->assertEquals($expected, $actual);
 
 
 
 
◆ test_checkPointsFromRequest_shouldReturn_whenEmptyPoints()
      
        
          | RequestValidationHelperTest::test_checkPointsFromRequest_shouldReturn_whenEmptyPoints  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ test_checkPointsFromRequest_shouldReturn_whenNonZeroPoints()
      
        
          | RequestValidationHelperTest::test_checkPointsFromRequest_shouldReturn_whenNonZeroPoints  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 93 of file RequestValidationHelperTest.php.
References $data.
   95         $data = [
'points' => [1, 5.2, 7.8, 9.1]];
    96         $expected = [1.0, 5.2, 7.8, 9.1];
    97         $actual = $this->
object->checkPointsInputEnoughPositive(
$data, 
true);
    98         $this->assertEquals($expected, $actual);
 
 
 
 
◆ test_checkPointsFromRequest_shouldReturn_whenPointsAsString()
      
        
          | RequestValidationHelperTest::test_checkPointsFromRequest_shouldReturn_whenPointsAsString  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 77 of file RequestValidationHelperTest.php.
References $data.
   79         $data = [
'points' => [1, 5.2, 
'7.8', 
'9,1']];
    80         $expected = [1.0, 5.2, 7.8, 9.1];
    81         $actual = $this->
object->checkPointsInput(
$data, 
false);
    82         $this->assertEquals($expected, $actual);
 
 
 
 
◆ test_inArray_shouldReturnFalse_whenEmptyArray()
      
        
          | RequestValidationHelperTest::test_inArray_shouldReturnFalse_whenEmptyArray  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ test_inArray_shouldReturnFalse_whenEmptyArrayValue()
      
        
          | RequestValidationHelperTest::test_inArray_shouldReturnFalse_whenEmptyArrayValue  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ test_inArray_shouldReturnFalse_whenEmptyStringValue()
      
        
          | RequestValidationHelperTest::test_inArray_shouldReturnFalse_whenEmptyStringValue  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ test_inArray_shouldReturnFalse_whenKeyNotFound()
      
        
          | RequestValidationHelperTest::test_inArray_shouldReturnFalse_whenKeyNotFound  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ test_inArray_shouldReturnTrue_whenKeyFound()
      
        
          | RequestValidationHelperTest::test_inArray_shouldReturnTrue_whenKeyFound  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testConstruct()
      
        
          | RequestValidationHelperTest::testConstruct  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ $object
The documentation for this class was generated from the following file: