- Timestamp:
- 07/05/2022 04:03:10 PM (2 years ago)
- Location:
- branches/6.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0
-
branches/6.0/tests/phpunit/tests/rest-api/rest-pattern-directory-controller.php
r53333 r53666 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.