File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * PHPUnit bootstrap file.
3+ * PHPUnit bootstrap file for WebberZone Knowledge Base .
44 *
5- * @package Better_Search_Plugin
5+ * This file sets up the testing environment for PHPUnit.
6+ *
7+ * @package WebberZone\Knowledge_Base
68 */
7- require_once dirname ( dirname ( dirname ( dirname ( dirname ( __FILE__ ) ) ) ) ) . '/.composer/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php ' ;
9+
10+ require_once dirname ( dirname ( dirname ( dirname ( __DIR__ ) ) ) ) . '/.composer/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php ' ;
811
912$ _tests_dir = getenv ( 'WP_TESTS_DIR ' );
1013
2730require_once $ _tests_dir . '/includes/functions.php ' ;
2831
2932function _manually_load_plugin () {
30- require dirname ( dirname ( __FILE__ ) ) . '/knowledgebase.php ' ;
33+ require dirname ( __DIR__ ) . '/knowledgebase.php ' ;
3134}
3235tests_add_filter ( 'muplugins_loaded ' , '_manually_load_plugin ' );
3336
3437// Start up the WP testing environment.
3538require $ _tests_dir . '/includes/bootstrap.php ' ;
36-
37- activate_plugin ( 'knowledgebase/knowledgebase.php ' );
38-
39- echo "Installing Knowledge Base... \n" ;
40-
41- global $ wzkb_settings , $ current_user ;
42-
43- wzkb_plugin_activate ( true );
44-
45- $ wzkb_settings = wzkb_get_settings ();
You can’t perform that action at this time.
0 commit comments