mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
parent
83e542542c
commit
508b9d1443
1 changed files with 4 additions and 4 deletions
|
@ -124,11 +124,11 @@ class ValidationTest extends CakeTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* testNotEmpty method
|
* Test notBlank method
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testNotEmpty() {
|
public function testNotBlank() {
|
||||||
$this->assertTrue(Validation::notBlank('abcdefg'));
|
$this->assertTrue(Validation::notBlank('abcdefg'));
|
||||||
$this->assertTrue(Validation::notBlank('fasdf '));
|
$this->assertTrue(Validation::notBlank('fasdf '));
|
||||||
$this->assertTrue(Validation::notBlank('fooo' . chr(243) . 'blabla'));
|
$this->assertTrue(Validation::notBlank('fooo' . chr(243) . 'blabla'));
|
||||||
|
@ -141,11 +141,11 @@ class ValidationTest extends CakeTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* testNotEmptyISO88591Encoding method
|
* Test notBlank method with ISO88591 encoding
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testNotEmptyISO88591AppEncoding() {
|
public function testNotBlankISO88591AppEncoding() {
|
||||||
Configure::write('App.encoding', 'ISO-8859-1');
|
Configure::write('App.encoding', 'ISO-8859-1');
|
||||||
$this->assertTrue(Validation::notBlank('abcdefg'));
|
$this->assertTrue(Validation::notBlank('abcdefg'));
|
||||||
$this->assertTrue(Validation::notBlank('fasdf '));
|
$this->assertTrue(Validation::notBlank('fasdf '));
|
||||||
|
|
Loading…
Add table
Reference in a new issue