summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-03-28 11:07:58 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-03-28 11:07:58 +0200
commitd61b772e8c074644262218dff0b1f91a2f3b3a14 (patch)
treeac61237547ed40d6a063c666d6ff6dfa2cf43a17 /tests/codeigniter
parentac5373a8979537f5454af6b911108541140a35d7 (diff)
Adding core and libraries mock classes
Diffstat (limited to 'tests/codeigniter')
-rw-r--r--tests/codeigniter/libraries/Table_test.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/codeigniter/libraries/Table_test.php b/tests/codeigniter/libraries/Table_test.php
index 7d0e4087f..61678afc7 100644
--- a/tests/codeigniter/libraries/Table_test.php
+++ b/tests/codeigniter/libraries/Table_test.php
@@ -141,12 +141,6 @@ class Table_test extends CI_TestCase {
public function test_default_template_keys()
{
- $reflectionOfTable = new ReflectionClass($this->table);
- $method = $reflectionOfTable->getMethod('_default_template');
-
- $method->setAccessible(true);
-
- $deft_template = $method->invoke($this->table);
$keys = array(
'table_open',
'thead_open', 'thead_close',
@@ -159,7 +153,7 @@ class Table_test extends CI_TestCase {
foreach ($keys as $key)
{
- $this->assertArrayHasKey($key, $deft_template);
+ $this->assertArrayHasKey($key, $this->table->default_template());
}
}