Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/19/2016 07:00:19 PM (8 years ago)
Author:
r-a-y
Message:

Tests: Switch out assertNotFalse() for assertInternalType() for new button unit tests, pt.2.

Props hnla.

See #7226.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/class-bp-button.php

    r11115 r11117  
    187187        ) );
    188188
    189         $this->assertNotFalse( strpos( $b->contents, '<section ' ) );
    190         $this->assertNotFalse( strpos( $b->contents, 'class="section-class ' ) );
    191         $this->assertNotFalse( strpos( $b->contents, 'id="section-id"' ) );
    192         $this->assertNotFalse( strpos( $b->contents, 'data-parent="foo"' ) );
    193         $this->assertNotFalse( strpos( $b->contents, '<button ' ) );
    194         $this->assertNotFalse( strpos( $b->contents, 'autofocus="autofocus"' ) );
    195         $this->assertNotFalse( strpos( $b->contents, 'type="submit"' ) );
    196         $this->assertNotFalse( strpos( $b->contents, 'name="my-button"' ) );
     189        $this->assertInternalType( 'int', strpos( $b->contents, '<section ' ) );
     190        $this->assertInternalType( 'int', strpos( $b->contents, 'class="section-class ' ) );
     191        $this->assertInternalType( 'int', strpos( $b->contents, 'id="section-id"' ) );
     192        $this->assertInternalType( 'int', strpos( $b->contents, 'data-parent="foo"' ) );
     193        $this->assertInternalType( 'int', strpos( $b->contents, '<button ' ) );
     194        $this->assertInternalType( 'int', strpos( $b->contents, 'autofocus="autofocus"' ) );
     195        $this->assertInternalType( 'int', strpos( $b->contents, 'type="submit"' ) );
     196        $this->assertInternalType( 'int', strpos( $b->contents, 'name="my-button"' ) );
    197197    }
    198198
Note: See TracChangeset for help on using the changeset viewer.