summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Woods <d.woods92@gmail.com>2015-03-18 18:37:35 +0100
committerDavid Woods <d.woods92@gmail.com>2015-03-18 18:37:35 +0100
commit5b88473a716a3c69e72c67f1cfe26452db9e1172 (patch)
tree246252464c0b51eb4aed377922f54d08932eaa13 /tests
parent70e220ad2423f2f701b0db12686dad2e7e9a6458 (diff)
Switched spaces to tabs on the few lines that were missed from previous refactors
Signed-off-by: David Woods <d.woods92@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/codeigniter/libraries/Form_validation_test.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/codeigniter/libraries/Form_validation_test.php b/tests/codeigniter/libraries/Form_validation_test.php
index 3dff2f374..18b7c83d6 100644
--- a/tests/codeigniter/libraries/Form_validation_test.php
+++ b/tests/codeigniter/libraries/Form_validation_test.php
@@ -8,14 +8,14 @@ class Form_validation_test extends CI_TestCase {
// Create a mock loader since load->helper() looks in the wrong directories for unit tests,
// We'll use CI_TestCase->helper() instead
- $loader = $this->getMock('CI_Loader', array('helper'));
+ $loader = $this->getMock('CI_Loader', array('helper'));
// At current, CI_Form_Validation only calls load->helper("form")
// Assert this so that if that changes this fails fast
- $loader->expects($this->once())
- ->method('helper')
- ->with($this->equalTo('form'));
+ $loader->expects($this->once())
+ ->method('helper')
+ ->with($this->equalTo('form'));
// Same applies for lang
- $lang = $this->getMock('CI_Lang', array('load'));
+ $lang = $this->getMock('CI_Lang', array('load'));
$this->ci_set_config('charset', 'UTF-8');
$utf8 = new Mock_Core_Utf8();
@@ -298,7 +298,7 @@ class Form_validation_test extends CI_TestCase {
// Empty input should pass any rule unless required is also specified
$this->assertTrue($this->run_rule('valid_base64', ''));
$this->assertTrue($this->run_rule('valid_base64', base64_encode('string')));
-
+
$this->assertFalse($this->run_rule('valid_base64', "FA08GG"));
}
@@ -310,7 +310,7 @@ class Form_validation_test extends CI_TestCase {
{
$_POST = array();
}
-
+
$this->form_validation->set_rules('field', 'name', $rule);
$_POST['field'] = $test_value;
return $this->form_validation->run();