Make WordPress Core

Changeset 28706


Ignore:
Timestamp:
06/09/2014 03:58:16 PM (11 years ago)
Author:
wonderboymusic
Message:

Update unit tests to reflect:

  • [28673] - title attributes are no longer expected to be present in some assertions
  • [28704] - Fix Declaration of Tests_Canonical_HTTPS::test() should be compatible with Tests_Canonical::test($test_url, $expected, $ticket = 0)
  • [28679] - Add @expectedDeprecated get_all_category_ids
Location:
trunk/tests/phpunit/tests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesPlugin.php

    r25002 r28706  
    1010        $default_headers = array(
    1111            'Name' => 'Hello Dolly',
    12             'Title' => '<a href="http://wordpress.org/#" title="Visit plugin homepage">Hello Dolly</a>',
     12            'Title' => '<a href="http://wordpress.org/#">Hello Dolly</a>',
    1313            'PluginURI' => 'http://wordpress.org/#',
    14             'Description' => 'This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page. <cite>By <a href="http://ma.tt/" title="Visit author homepage">Matt Mullenweg</a>.</cite>',
    15             'Author' => '<a href="http://ma.tt/" title="Visit author homepage">Matt Mullenweg</a>',
     14            'Description' => 'This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page. <cite>By <a href="http://ma.tt/">Matt Mullenweg</a>.</cite>',
     15            'Author' => '<a href="http://ma.tt/">Matt Mullenweg</a>',
    1616            'AuthorURI' => 'http://ma.tt/',
    1717            'Version' => '1.5.1',
  • trunk/tests/phpunit/tests/canonical/https.php

    r28704 r28706  
    1616    }
    1717
    18     public function test() {
     18    public function test( $test_url, $expected, $ticket = 0 ) {
    1919        // Nothing
    2020    }
  • trunk/tests/phpunit/tests/category.php

    r28566 r28706  
    1818    /**
    1919     * Validate get_all_category_ids
     20     *
     21     * @expectedDeprecated get_all_category_ids
    2022     */
    2123    function test_get_all_category_ids() {
  • trunk/tests/phpunit/tests/theme/themeDir.php

    r25409 r28706  
    5656        $this->assertEquals( 'WordPress Default', $theme['Title'] );
    5757        $this->assertEquals( 'The default WordPress theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>.', $theme['Description'] );
    58         $this->assertEquals( '<a href="http://binarybonsai.com/" title="Visit author homepage">Michael Heilemann</a>', $theme['Author'] );
     58        $this->assertEquals( '<a href="http://binarybonsai.com/">Michael Heilemann</a>', $theme['Author'] );
    5959        $this->assertEquals( '1.6', $theme['Version'] );
    6060        $this->assertEquals( 'default', $theme['Template'] );
     
    122122        $this->assertEquals( 'Stylesheet Only', $theme['Title'] );
    123123        $this->assertEquals( 'A three-column widget-ready theme in dark blue.', $theme['Description'] );
    124         $this->assertEquals( '<a href="http://www.example.com/" title="Visit author homepage">Henry Crun</a>', $theme['Author'] );
     124        $this->assertEquals( '<a href="http://www.example.com/">Henry Crun</a>', $theme['Author'] );
    125125        $this->assertEquals( '1.0', $theme['Version'] );
    126126        $this->assertEquals( 'sandbox', $theme['Template'] );
     
    206206        $this->assertEquals( 'http://example.org/', $theme_data['URI'] );
    207207        $this->assertEquals( 'An example theme', $theme_data['Description'] );
    208         $this->assertEquals( '<a href="http://example.com/" title="Visit author homepage">Minnie Bannister</a>', $theme_data['Author'] );
     208        $this->assertEquals( '<a href="http://example.com/">Minnie Bannister</a>', $theme_data['Author'] );
    209209        $this->assertEquals( 'http://example.com/', $theme_data['AuthorURI'] );
    210210        $this->assertEquals( '1.3', $theme_data['Version'] );
     
    225225        $this->assertEquals( 'http://example.org/', $theme_data['URI'] );
    226226        $this->assertEquals( 'An example theme in a sub directory', $theme_data['Description'] );
    227         $this->assertEquals( '<a href="http://wordpress.org/" title="Visit author homepage">Mr. WordPress</a>', $theme_data['Author'] );
     227        $this->assertEquals( '<a href="http://wordpress.org/">Mr. WordPress</a>', $theme_data['Author'] );
    228228        $this->assertEquals( 'http://wordpress.org/', $theme_data['AuthorURI'] );
    229229        $this->assertEquals( '0.1', $theme_data['Version'] );
Note: See TracChangeset for help on using the changeset viewer.