buddypress/tests/phpunit
David Cavins db5f02d381 Profile: Improve validation in is_valid().
When checking a submitted array of values,
ensure that the `foreach` breaks when an
invalid value is encountered. Previously,
the `foreach` returned the validity of the
last element in the array.

Also update unit tests so that invalid values
appear in various positions in the array of
values to check.

Fixes #6884.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@10592 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2016-02-14 13:48:59 +00:00
..
assets Allow class extending the BP_Attachment class to get the original WordPress upload dir within their upload_dir_filter() method. 2015-10-06 23:53:33 +00:00
includes Post Type Activities: add unit tests and improve existing ones. 2016-02-07 16:55:04 +00:00
testcases Profile: Improve validation in is_valid(). 2016-02-14 13:48:59 +00:00
bootstrap.php Tests: new base class for BP_Email tests. 2016-02-06 19:26:09 +00:00
multisite.xml Grunt: move phpUnit tests into new, top-level tests folder. 2014-05-04 12:57:55 +00:00