コード例 #1
0
 /**
  * Test for method isRowInvalid. Expected true result.
  * @dataProvider isRowInvalidDataProvider
  */
 public function testIsRowInvalid($errorLevel, $rowNumber, $isValid)
 {
     $this->model->addError('systemException', $errorLevel, $rowNumber, 'Column name', 'Message', 'Description');
     $result = $this->model->isRowInvalid($rowNumber);
     $this->assertEquals($isValid, $result);
 }
コード例 #2
0
 /**
  * Test for method isRowInvalid. Expected false result.
  */
 public function testIsRowInvalidFalse()
 {
     $this->model->addError('systemException');
     $result = $this->model->isRowInvalid(8);
     $this->assertFalse($result);
 }