| @@ 358-371 (lines=14) @@ | ||
| 355 | $this->assertEquals('Too short!', $this->validator->getParamRuleError('username', 'length')); |
|
| 356 | } |
|
| 357 | ||
| 358 | public function testSetData() |
|
| 359 | { |
|
| 360 | $this->assertEquals([], $this->validator->getData()); |
|
| 361 | ||
| 362 | $this->validator->setData([ |
|
| 363 | 'username' => 'awurth', |
|
| 364 | 'password' => 'pass' |
|
| 365 | ]); |
|
| 366 | ||
| 367 | $this->assertEquals([ |
|
| 368 | 'username' => 'awurth', |
|
| 369 | 'password' => 'pass' |
|
| 370 | ], $this->validator->getData()); |
|
| 371 | } |
|
| 372 | ||
| 373 | public function testSetValues() |
|
| 374 | { |
|
| @@ 373-386 (lines=14) @@ | ||
| 370 | ], $this->validator->getData()); |
|
| 371 | } |
|
| 372 | ||
| 373 | public function testSetValues() |
|
| 374 | { |
|
| 375 | $this->assertEquals([], $this->validator->getValues()); |
|
| 376 | ||
| 377 | $this->validator->setValues([ |
|
| 378 | 'username' => 'awurth', |
|
| 379 | 'password' => 'pass' |
|
| 380 | ]); |
|
| 381 | ||
| 382 | $this->assertEquals([ |
|
| 383 | 'username' => 'awurth', |
|
| 384 | 'password' => 'pass' |
|
| 385 | ], $this->validator->getValues()); |
|
| 386 | } |
|
| 387 | ||
| 388 | public function testSetDefaultMessage() |
|
| 389 | { |
|