Changeset 11115 for trunk/tests/phpunit/testcases/core/class-bp-button.php
- Timestamp:
- 09/19/2016 06:02:43 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-button.php
r11114 r11115 216 216 ) ); 217 217 218 $this->assert NotFalse(strpos( $b->contents, '<section ' ) );219 $this->assert NotFalse(strpos( $b->contents, 'class="section-class ' ) );220 $this->assert NotFalse(strpos( $b->contents, 'id="section-id"' ) );221 $this->assert NotFalse(strpos( $b->contents, 'href="http://example.com"' ) );222 $this->assert NotFalse(strpos( $b->contents, 'class="link-class"' ) );223 $this->assert NotFalse(strpos( $b->contents, 'id="link-id"' ) );224 $this->assert NotFalse(strpos( $b->contents, 'rel="nofollow"' ) );225 $this->assert NotFalse(strpos( $b->contents, 'title="link-title"' ) );218 $this->assertInternalType( 'int', strpos( $b->contents, '<section ' ) ); 219 $this->assertInternalType( 'int', strpos( $b->contents, 'class="section-class ' ) ); 220 $this->assertInternalType( 'int', strpos( $b->contents, 'id="section-id"' ) ); 221 $this->assertInternalType( 'int', strpos( $b->contents, 'href="http://example.com"' ) ); 222 $this->assertInternalType( 'int', strpos( $b->contents, 'class="link-class"' ) ); 223 $this->assertInternalType( 'int', strpos( $b->contents, 'id="link-id"' ) ); 224 $this->assertInternalType( 'int', strpos( $b->contents, 'rel="nofollow"' ) ); 225 $this->assertInternalType( 'int', strpos( $b->contents, 'title="link-title"' ) ); 226 226 } 227 227 … … 242 242 ) ); 243 243 244 $this->assert NotFalse(strpos( $b->contents, '<button class="new-class"' ) );244 $this->assertInternalType( 'int', strpos( $b->contents, '<button class="new-class"' ) ); 245 245 } 246 246
Note: See TracChangeset
for help on using the changeset viewer.