Browse Source

ci: fix unit test

pull/227/head
Ned Zimmerman 4 years ago
parent
commit
388e5ca624
  1. 4
      tests/test-filters.php

4
tests/test-filters.php

@ -5,12 +5,14 @@
* @package Pressbooks_Aldine * @package Pressbooks_Aldine
*/ */
use function \Aldine\Filters\register_query_vars;
/** /**
* Filters test case. * Filters test case.
*/ */
class FiltersTest extends WP_UnitTestCase { class FiltersTest extends WP_UnitTestCase {
public function test_register_query_vars() { public function test_register_query_vars() {
$vars = \Aldine\Helpers\register_query_vars([]); $vars = register_query_vars([]);
$this->assertContains('license', $vars); $this->assertContains('license', $vars);
$this->assertContains('subject', $vars); $this->assertContains('subject', $vars);
} }

Loading…
Cancel
Save