- Timestamp:
- 07/05/2022 04:01:36 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-pattern-directory-controller.php
r53333 r53665 112 112 113 113 array_walk( $patterns, array( $this, 'assertPatternMatchesSchema' ) ); 114 $this->assertSame( array( 'blog post' ), $patterns[0]['keywords'] ); 115 $this->assertSame( array( 'header', 'hero' ), $patterns[1]['keywords'] ); 116 $this->assertSame( array( 'call to action', 'hero section' ), $patterns[2]['keywords'] ); 114 117 } 115 118 … … 158 161 159 162 array_walk( $patterns, array( $this, 'assertPatternMatchesSchema' ) ); 160 161 foreach ( $patterns as $pattern ) {162 $this->assertContains( 'core', $pattern['keywords'] );163 }164 163 } 165 164
Note: See TracChangeset
for help on using the changeset viewer.