Skip to content

Commit

Permalink
fix loader test to run on init
Browse files Browse the repository at this point in the history
  • Loading branch information
mlwilkerson committed Jul 31, 2024
1 parent 45828de commit 3b39366
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/loader/test-loader-basic.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace FortAwesome;

use Yoast\WPTestUtils\WPIntegration\TestCase;
Expand All @@ -7,13 +8,14 @@
* FontAwesomeLoaderTestBasic class
*/
class FontAwesomeLoaderTestBasic extends TestCase {

public function set_up() {
parent::set_up();
require_once __DIR__ . '/mock_installations/ver_a/index.php';
require_once __DIR__ . '/mock_installations/ver_b/index.php';

// Trigger the load of the plugin.
do_action( 'wp_loaded' );
do_action( 'init' );
}
// It should choose the latest *semantic* version.
public function test_select_latest_plugin_installation() {
Expand Down

0 comments on commit 3b39366

Please sign in to comment.