Skip to content

Commit 154e1ee

Browse files
committed
Fixes
1 parent 760cef5 commit 154e1ee

4 files changed

Lines changed: 100 additions & 9 deletions

File tree

.github/workflows/wp-compatibility-test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ jobs:
692692
WP_TESTS_TAG="trunk"
693693
else
694694
download https://api.wordpress.org/core/version-check/1.7/ /tmp/wp-latest.json
695-
LATEST_VERSION=$(grep -o '"version":"[^"]*' /tmp/wp-latest.json | sed 's/"version":"//')
695+
LATEST_VERSION=$(grep -o '"version":"[^"]*' /tmp/wp-latest.json | head -n 1 | sed 's/"version":"//')
696696
if [[ -z "$LATEST_VERSION" ]]; then
697697
echo "Latest WordPress version could not be found"
698698
exit 1
@@ -807,15 +807,16 @@ jobs:
807807
808808
- name: Create Test File
809809
run: |
810-
cat > tests/EngineScriptSiteOptimizerTest.php << 'EOF'
810+
mkdir -p tests/integration
811+
cat > tests/integration/EngineScriptSiteOptimizerWpTest.php << 'EOF'
811812
<?php
812813
/**
813-
* Class EngineScriptSiteOptimizerTest
814+
* Class EngineScriptSiteOptimizerWpTest
814815
*
815816
* @package EngineScript_Site_Optimizer
816817
*/
817818
818-
class EngineScriptSiteOptimizerTest extends WP_UnitTestCase {
819+
class EngineScriptSiteOptimizerWpTest extends WP_UnitTestCase {
819820
public function test_plugin_loaded() {
820821
$this->assertTrue(function_exists('es_optimizer_init_plugin'), 'Plugin was not loaded correctly');
821822
$this->assertTrue(function_exists('es_optimizer_get_default_options'));
@@ -974,7 +975,7 @@ jobs:
974975
>
975976
<testsuites>
976977
<testsuite name="EngineScript Site Optimizer">
977-
<directory suffix="Test.php">./tests/</directory>
978+
<file>./tests/integration/EngineScriptSiteOptimizerWpTest.php</file>
978979
</testsuite>
979980
</testsuites>
980981
</phpunit>

.markdownlint.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"MD013": false,
3+
"MD024": {
4+
"siblings_only": true
5+
}
6+
}

0 commit comments

Comments
 (0)