diff --git a/cake/tests/cases/libs/set.test.php b/cake/tests/cases/libs/set.test.php index 3797a9413..e21391a20 100644 --- a/cake/tests/cases/libs/set.test.php +++ b/cake/tests/cases/libs/set.test.php @@ -161,6 +161,21 @@ class SetTest extends UnitTestCase { // And also updates it's own value property $this->assertIdentical($Set->value, $expected); } + + function testExtract() { + $a = array( + array( 'lday' => '20 sales' ), + array( 'lday' => '2 sales' ) + ); + $result = Set::extract($a, '{n}.lday'); + + $expected = array( + 0 => '20 sales', + 1 => '2 sales' + ); + + $this->assertIdentical($result, $expected); + } } ?> \ No newline at end of file