Changeset 56746 for trunk/tests/phpunit/tests/user.php
- Timestamp:
- 09/29/2023 03:22:12 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r56548 r56746 2084 2084 2085 2085 // Check that the item added by the filter was retained. 2086 $this->assert Same(2086 $this->assertCount( 2087 2087 1, 2088 count( 2089 wp_list_filter( 2090 $actual['data'][0]['data'], 2091 array( 2092 'name' => 'Test Additional Data Name', 2093 'value' => 'Test Additional Data Value', 2094 ) 2088 wp_list_filter( 2089 $actual['data'][0]['data'], 2090 array( 2091 'name' => 'Test Additional Data Name', 2092 'value' => 'Test Additional Data Value', 2095 2093 ) 2096 2094 ) … … 2116 2114 2117 2115 // Check that the duplicate 'name' => 'User ID' was stripped. 2118 $this->assert Same(2116 $this->assertCount( 2119 2117 1, 2120 count( 2121 wp_list_filter( 2122 $actual['data'][0]['data'], 2123 array( 2124 'name' => 'User ID', 2125 ) 2118 wp_list_filter( 2119 $actual['data'][0]['data'], 2120 array( 2121 'name' => 'User ID', 2126 2122 ) 2127 2123 ) … … 2129 2125 2130 2126 // Check that the item added by the filter was retained. 2131 $this->assert Same(2127 $this->assertCount( 2132 2128 1, 2133 count( 2134 wp_list_filter( 2135 $actual['data'][0]['data'], 2136 array( 2137 'name' => 'Test Additional Data Name', 2138 'value' => 'Test Additional Data Value', 2139 ) 2129 wp_list_filter( 2130 $actual['data'][0]['data'], 2131 array( 2132 'name' => 'Test Additional Data Name', 2133 'value' => 'Test Additional Data Value', 2140 2134 ) 2141 2135 )
Note: See TracChangeset
for help on using the changeset viewer.