We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84ba5ae commit af3b810Copy full SHA for af3b810
tests/wpunit/ResourceTest.php
@@ -284,6 +284,16 @@ public function testRefreshForms()
284
$this->assertEquals('AAA Test', reset($result)[ $this->resource->order_by ]);
285
$this->assertEquals('WooCommerce Product Form', end($result)[ $this->resource->order_by ]);
286
287
+ // Assert that any Creator Network or Creator Profile form is not included in the resultset.
288
+ foreach ( $result as $formID => $form) {
289
+ if ( array_key_exists('format', $form)) {
290
+ $this->assertNotNull($form['format']);
291
+ }
292
+
293
+ $this->assertNotEquals($form['name'], 'Creator Network');
294
+ $this->assertNotEquals($form['name'], 'Creator Profile');
295
296
297
// Confirm resources stored in WordPress options.
298
$resources = get_option($this->resource->settings_name);
299
0 commit comments