Skip to content

Commit

Permalink
Merge 6512dac into fc188ed
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Nov 20, 2023
2 parents fc188ed + 6512dac commit 9a428ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 38 deletions.
10 changes: 0 additions & 10 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,6 @@
</properties>
</rule>

<!-- Whitelist a few non-snakecase PHPUnit properties. -->
<rule ref="WordPress.NamingConventions.ValidVariableName">
<properties>
<property name="customPropertiesWhitelist" type="array">
<element value="preserveGlobalState"/>
<element value="runTestInSeparateProcess"/>
</property>
</properties>
</rule>


<!--
#############################################################################
Expand Down
17 changes: 3 additions & 14 deletions tests/Unit/Assets_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,12 @@
* Class Assets_Test.
*
* @covers Yoast_ACF_Analysis_Assets
*
* @preserveGlobalState disabled
* @runTestsInSeparateProcesses
*/
class Assets_Test extends TestCase {

/**
* Whether or not to preserve the global state.
*
* @var bool
*/
protected $preserveGlobalState = false;

/**
* Whether or not to run each test in a separate process.
*
* @var bool
*/
protected $runTestInSeparateProcess = true;

/**
* Test the init hook and determines whether the proper assets are loaded.
*
Expand Down
16 changes: 2 additions & 14 deletions tests/Unit/Dependencies/Dependency_Yoast_SEO_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,11 @@
* Class Dependency_Yoast_SEO_Test.
*
* @covers Yoast_ACF_Analysis_Dependency_Yoast_SEO
*
* @runTestsInSeparateProcesses
*/
class Dependency_Yoast_SEO_Test extends TestCase {

/**
* Whether or not to preserve the global state.
*
* @var bool
*/
protected $preserveGlobalState = false;

/**
* Whether or not to run each test in a separate process.
*
* @var bool
*/
protected $runTestInSeparateProcess = true;

/**
* Tests that requirements are not met when Yoast SEO can't be found.
*
Expand Down

0 comments on commit 9a428ec

Please sign in to comment.