From b41be4c55c45c26428dd651fbab9a7ff50472eb0 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Wed, 7 Oct 2015 06:16:58 +0000 Subject: [PATCH] Tests: Account for non-numeric strings in tests for `get_space_allowed()`. Provides a specific test for a case where a non-numeric strings are assigned to `blog_upload_space` at both the site and network levels. See #34037. git-svn-id: https://develop.svn.wordpress.org/trunk@34900 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/multisite/getSpaceAllowed.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/tests/multisite/getSpaceAllowed.php b/tests/phpunit/tests/multisite/getSpaceAllowed.php index c2393c0cf5..069201ad85 100644 --- a/tests/phpunit/tests/multisite/getSpaceAllowed.php +++ b/tests/phpunit/tests/multisite/getSpaceAllowed.php @@ -92,6 +92,7 @@ class Tests_Multisite_Get_Space_Allowed extends WP_UnitTestCase { // If neither network or site options are valid, fallback to the default. array( false, false, 100 ), + array( 'NAN', 'NAN', 100 ), // These are likely unexpected. array( 0, 666, 100 ),