From ac97497d9527082174e8581fdc8e16b454853fec Mon Sep 17 00:00:00 2001 From: PayBas Date: Mon, 5 May 2014 00:12:21 +0200 Subject: [PATCH] [ticket/12334] Added test get_profile_value_raw PHPBB3-12334 --- tests/profile/get_profile_value_raw_test.php | 52 ++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tests/profile/get_profile_value_raw_test.php diff --git a/tests/profile/get_profile_value_raw_test.php b/tests/profile/get_profile_value_raw_test.php new file mode 100644 index 0000000000..a9950b1889 --- /dev/null +++ b/tests/profile/get_profile_value_raw_test.php @@ -0,0 +1,52 @@ +getMock('\phpbb\request\request'), + $this->getMock('\phpbb\template\template'), + $this->getMock('\phpbb\user') + ); + + $this->assertSame($expected, $cp->get_profile_value_raw($value, array( + 'field_type' => $type, + 'field_show_novalue' => $show_novalue, + ))); + } +}