From 5b88473a716a3c69e72c67f1cfe26452db9e1172 Mon Sep 17 00:00:00 2001 From: David Woods Date: Wed, 18 Mar 2015 10:37:35 -0700 Subject: Switched spaces to tabs on the few lines that were missed from previous refactors Signed-off-by: David Woods --- tests/codeigniter/libraries/Form_validation_test.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/codeigniter') 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(); -- cgit v1.2.3-24-g4f1b