Make WordPress Core

Changeset 37239


Ignore:
Timestamp:
04/18/2016 03:26:48 AM (8 years ago)
Author:
jeremyfelt
Message:

Tests: Add missing params to doc blocks

  • These should have been included in [37236] and [37238].
  • Simplifies parameter names in test_get_network_by_path()

See #36566.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/bootstrap.php

    r37238 r37239  
    6464     * @ticket 27003
    6565     * @dataProvider data_get_network_by_path
    66      */
    67     function test_get_network_by_path( $expected_key, $request_domain, $request_path, $message ) {
    68         $network = get_network_by_path( $request_domain, $request_path );
     66     *
     67     * @param string $expected_key The array key associated with expected data for the test.
     68     * @param string $domain       The requested domain.
     69     * @param string $path         The requested path.
     70     * @param string $message      The message to pass for failed tests.
     71     */
     72    function test_get_network_by_path( $expected_key, $domain, $path, $message ) {
     73        $network = get_network_by_path( $domain, $path );
    6974        $this->assertEquals( self::$network_ids[ $expected_key ], $network->id, $message );
    7075    }
     
    140145     * @ticket 27884
    141146     * @dataProvider data_multisite_bootstrap
     147     *
     148     * @param string $site_key    The array key associated with the expected site for the test.
     149     * @param string $network_key The array key associated with the expected network for the test.
     150     * @param string $domain      The requested domain.
     151     * @param string $path        The requested path.
    142152     */
    143153    function test_multisite_bootstrap( $site_key, $network_key, $domain, $path ) {
Note: See TracChangeset for help on using the changeset viewer.