From 4a7344ae80ad84fba50b95bc8fc832c6ae225436 Mon Sep 17 00:00:00 2001 From: Mark van Driel Date: Thu, 9 Apr 2015 11:59:00 +0200 Subject: [PATCH] Keep only test for null value as path --- lib/Cake/Test/Case/Utility/HashTest.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/Cake/Test/Case/Utility/HashTest.php b/lib/Cake/Test/Case/Utility/HashTest.php index cd53af692b4..dcde12e4f47 100644 --- a/lib/Cake/Test/Case/Utility/HashTest.php +++ b/lib/Cake/Test/Case/Utility/HashTest.php @@ -240,20 +240,11 @@ public function testGetInvalidPath() { } /** - * Test testGetNonStringPath() + * Test testGetNullPath() * * @return void */ - public function testGetNonStringPath() { - $result = Hash::get(array(1.1 => 'one.one'), 1.1); - $this->assertEquals('one.one', $result); - - $result = Hash::get(array('1' => array('1' => 'one.one')), 1.1); - $this->assertNull($result); - - $result = Hash::get(array(true => 'true'), true); - $this->assertEquals('true', $result); - + public function testGetNullPath() { $result = Hash::get(array('one' => 'two'), null, '-'); $this->assertEquals('-', $result); }