Changeset 51397 for trunk/tests/phpunit/tests/oembed/filterResult.php
- Timestamp:
- 07/10/2021 11:15:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/filterResult.php
r49117 r51397 20 20 preg_match( '|src=".*#\?secret=([\w\d]+)" data-secret="([\w\d]+)"|', $actual, $matches ); 21 21 22 $this->assert True( isset( $matches[1] ));23 $this->assert True( isset( $matches[2] ));22 $this->assertArrayHasKey( 1, $matches ); 23 $this->assertArrayHasKey( 2, $matches ); 24 24 $this->assertSame( $matches[1], $matches[2] ); 25 25 } … … 64 64 preg_match( '|src="https://wordpress.org#\?secret=([\w\d]+)" data-secret="([\w\d]+)"|', $actual, $matches ); 65 65 66 $this->assert True( isset( $matches[1] ));67 $this->assert True( isset( $matches[2] ));66 $this->assertArrayHasKey( 1, $matches ); 67 $this->assertArrayHasKey( 2, $matches ); 68 68 $this->assertSame( $matches[1], $matches[2] ); 69 69 }
Note: See TracChangeset
for help on using the changeset viewer.