Skip to content

Commit

Permalink
Code quality.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Feb 5, 2020
1 parent e3581bf commit 876bdc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public function __construct() {

/**
* Plugins loaded.
*
* @return void
*/
public function plugins_loaded() {
if ( ! $this->get_dependencies()->are_met() ) {
Expand Down
2 changes: 2 additions & 0 deletions tests/src/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public function setUp() {
* @link https://developer.wordpress.org/reference/functions/has_filter/
*/
public function test_filters() {
$this->integration->plugins_loaded();

$this->assertEquals( has_filter( 'init', array( $this->integration, 'init' ) ), 10 );
$this->assertEquals( has_filter( 'admin_init', array( $this->integration, 'admin_init' ) ), 10 );
}
Expand Down

0 comments on commit 876bdc7

Please sign in to comment.