- Timestamp:
- 07/06/2022 04:26:08 PM (4 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/rest-api/rest-pattern-directory-controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/tests/phpunit/tests/rest-api/rest-pattern-directory-controller.php
r51208 r53675 101 101 102 102 array_walk( $patterns, array( $this, 'assertPatternMatchesSchema' ) ); 103 $this->assertSame( array( 'blog post' ), $patterns[0]['keywords'] ); 104 $this->assertSame( array( 'header', 'hero' ), $patterns[1]['keywords'] ); 105 $this->assertSame( array( 'call to action', 'hero section' ), $patterns[2]['keywords'] ); 103 106 } 104 107 … … 147 150 148 151 array_walk( $patterns, array( $this, 'assertPatternMatchesSchema' ) ); 149 150 foreach ( $patterns as $pattern ) {151 $this->assertContains( 'core', $pattern['keywords'] );152 }153 152 } 154 153
Note: See TracChangeset
for help on using the changeset viewer.