/** * 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); }
/** * Test for method isRowInvalid. Expected false result. */ public function testIsRowInvalidFalse() { $this->model->addError('systemException'); $result = $this->model->isRowInvalid(8); $this->assertFalse($result); }