Changeset 13314 for trunk/tests/phpunit/testcases/core/class-bp-button.php
- Timestamp:
- 08/13/2022 08:58:51 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-button.php
r11737 r13314 187 187 ) ); 188 188 189 $this->assertI nternalType( 'int',strpos( $b->contents, '<section ' ) );190 $this->assertI nternalType( 'int',strpos( $b->contents, 'class="section-class ' ) );191 $this->assertI nternalType( 'int',strpos( $b->contents, 'id="section-id"' ) );192 $this->assertI nternalType( 'int',strpos( $b->contents, 'data-parent="foo"' ) );193 $this->assertI nternalType( 'int',strpos( $b->contents, '<button ' ) );194 $this->assertI nternalType( 'int',strpos( $b->contents, 'autofocus="autofocus"' ) );195 $this->assertI nternalType( 'int',strpos( $b->contents, 'type="submit"' ) );196 $this->assertI nternalType( 'int',strpos( $b->contents, 'name="my-button"' ) );189 $this->assertIsInt( strpos( $b->contents, '<section ' ) ); 190 $this->assertIsInt( strpos( $b->contents, 'class="section-class ' ) ); 191 $this->assertIsInt( strpos( $b->contents, 'id="section-id"' ) ); 192 $this->assertIsInt( strpos( $b->contents, 'data-parent="foo"' ) ); 193 $this->assertIsInt( strpos( $b->contents, '<button ' ) ); 194 $this->assertIsInt( strpos( $b->contents, 'autofocus="autofocus"' ) ); 195 $this->assertIsInt( strpos( $b->contents, 'type="submit"' ) ); 196 $this->assertIsInt( strpos( $b->contents, 'name="my-button"' ) ); 197 197 } 198 198 … … 216 216 ) ); 217 217 218 $this->assertI nternalType( 'int',strpos( $b->contents, '<section ' ) );219 $this->assertI nternalType( 'int',strpos( $b->contents, 'class="section-class ' ) );220 $this->assertI nternalType( 'int',strpos( $b->contents, 'id="section-id"' ) );221 $this->assertI nternalType( 'int',strpos( $b->contents, 'href="http://example.com"' ) );222 $this->assertI nternalType( 'int',strpos( $b->contents, 'class="link-class"' ) );223 $this->assertI nternalType( 'int',strpos( $b->contents, 'id="link-id"' ) );224 $this->assertI nternalType( 'int',strpos( $b->contents, 'rel="nofollow"' ) );225 $this->assertI nternalType( 'int',strpos( $b->contents, 'title="link-title"' ) );218 $this->assertIsInt( strpos( $b->contents, '<section ' ) ); 219 $this->assertIsInt( strpos( $b->contents, 'class="section-class ' ) ); 220 $this->assertIsInt( strpos( $b->contents, 'id="section-id"' ) ); 221 $this->assertIsInt( strpos( $b->contents, 'href="http://example.com"' ) ); 222 $this->assertIsInt( strpos( $b->contents, 'class="link-class"' ) ); 223 $this->assertIsInt( strpos( $b->contents, 'id="link-id"' ) ); 224 $this->assertIsInt( strpos( $b->contents, 'rel="nofollow"' ) ); 225 $this->assertIsInt( strpos( $b->contents, 'title="link-title"' ) ); 226 226 } 227 227 … … 242 242 ) ); 243 243 244 $this->assertI nternalType( 'int',strpos( $b->contents, '<button class="new-class"' ) );244 $this->assertIsInt( strpos( $b->contents, '<button class="new-class"' ) ); 245 245 } 246 246
Note: See TracChangeset
for help on using the changeset viewer.