Skip to content

Commit

Permalink
Switch the isLoad check to not define any constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ingeniumed committed Sep 29, 2023
1 parent 9befca9 commit 555952e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/integrations/test-vip-block-data-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ public function test__load_call_returns_inactive_because_no_block_data_api_plugi
public function test__if_is_loaded_gives_back_true_when_loaded(): void {
$block_data_api_integration = new BlockDataApiIntegration( $this->slug );

define( 'VIP_BLOCK_DATA_API_LOADED', true );

$this->assertTrue( $block_data_api_integration->is_loaded() );
$this->assertFalse( $block_data_api_integration->is_loaded() );
}
}
4 changes: 1 addition & 3 deletions tests/integrations/test-vip-governance.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ public function test__load_call_returns_inactive_because_no_governance_plugin_lo
public function test__if_is_loaded_gives_back_true_when_loaded(): void {
$vip_governance_integration = new VipGovernanceIntegration( $this->slug );

define( 'VIP_GOVERNANCE_LOADED', true );

$this->assertTrue( $vip_governance_integration->is_loaded() );
$this->assertFalse( $vip_governance_integration->is_loaded() );
}
}

0 comments on commit 555952e

Please sign in to comment.