Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Feb 22, 2024
1 parent 27c3c04 commit e08c4f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ install_test_suite() {
# remove all forward slashes in the end
WP_CORE_DIR=$(echo $WP_CORE_DIR | sed "s:/\+$::")
sed $ioption "s:dirname( __FILE__ ) . '/src/':'$WP_CORE_DIR/':" "$WP_TESTS_DIR"/wp-tests-config.php
sed $ioption "s:__DIR__ . '/src/':'$WP_CORE_DIR/':" "$WP_TESTS_DIR"/wp-tests-config.php
#sed $ioption "s:__DIR__ . '/src/':'$WP_CORE_DIR/':" "$WP_TESTS_DIR"/wp-tests-config.php
sed $ioption "s/youremptytestdbnamehere/$DB_NAME/" "$WP_TESTS_DIR"/wp-tests-config.php
sed $ioption "s/yourusernamehere/$DB_USER/" "$WP_TESTS_DIR"/wp-tests-config.php
sed $ioption "s/yourpasswordhere/$DB_PASS/" "$WP_TESTS_DIR"/wp-tests-config.php
Expand Down
14 changes: 7 additions & 7 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ function _manually_load_plugin() {
require_once _glotpress_path( '/tests/phpunit/lib/testcase-route.php' );
require_once _glotpress_path( '/tests/phpunit/lib/testcase-request.php' );

function _install_glotpress() {
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
require_once _glotpress_path( '/gp-includes/schema.php' );
require_once _glotpress_path( '/gp-includes/install-upgrade.php' );
gp_upgrade_db();
}
_install_glotpress();
//function _install_glotpress() {

Check warning on line 50 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

This comment is 47% valid code; is this commented out code?

Check failure on line 50 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

No space found before comment text; expected "// function _install_glotpress() {" but found "//function _install_glotpress() {"
// require_once ABSPATH . 'wp-admin/includes/upgrade.php';

Check failure on line 51 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

Spaces must be used for mid-line alignment; tabs are not allowed

Check failure on line 51 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

Expected 1 space before comment text but found 2; use block comment if you need indentation
// require_once _glotpress_path( '/gp-includes/schema.php' );

Check failure on line 52 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

Spaces must be used for mid-line alignment; tabs are not allowed

Check failure on line 52 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

Expected 1 space before comment text but found 2; use block comment if you need indentation
// require_once _glotpress_path( '/gp-includes/install-upgrade.php' );

Check failure on line 53 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

Spaces must be used for mid-line alignment; tabs are not allowed

Check failure on line 53 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

Expected 1 space before comment text but found 2; use block comment if you need indentation
// gp_upgrade_db();

Check failure on line 54 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

Spaces must be used for mid-line alignment; tabs are not allowed

Check failure on line 54 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

Expected 1 space before comment text but found 2; use block comment if you need indentation
//}

Check failure on line 55 in tests/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

No space found before comment text; expected "// }" but found "//}"
//_install_glotpress();

0 comments on commit e08c4f8

Please sign in to comment.