Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsoo committed Jun 29, 2023
1 parent 0f7eb10 commit 5762829
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@
class Cron_Verification_Gate_Test extends TestCase {

/**
* @var \Yoast\WP\SEO\Indexables\Application\Cron_Verification_Gate
* The instance.
*
* @var Cron_Verification_Gate
*/
private $instance;

/**
* @var \Mockery\MockInterface|\Yoast\WP\SEO\Helpers\Indexable_Helper
* The indexable helper.
*
* @var \Mockery\MockInterface|Indexable_Helper
*/
private $indexable_helper;

Expand All @@ -43,7 +47,7 @@ protected function setUp(): void {
/**
* Tests if the should verify on cron function gives the expected response.
*
* @param bool $expected The expected result
* @param bool $expected The expected result.
* @param string $should_index What the helper should return.
* @param string $filter_value What the filter should return.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@
class Next_Verification_Action_Handler_Test extends TestCase {

/**
* @var \Yoast\WP\SEO\Indexables\Application\Next_Verification_Action_Handler
* The instance.
*
* @var Next_Verification_Action_Handler
*/
private $instance;

/**
* @var \Mockery\MockInterface|\Yoast\WP\SEO\Helpers\Options_Helper
* The options helper.
*
* @var \Mockery\MockInterface|Options_Helper
*/
private $options_helper;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@
class Verification_Cron_Batch_Handler_Test extends TestCase {

/**
* @var \Yoast\WP\SEO\Indexables\Application\Verification_Cron_Batch_Handler
* The instance.
*
* @var Verification_Cron_Batch_Handler
*/
private $instance;

/**
* @var \Mockery\MockInterface|\Yoast\WP\SEO\Helpers\Options_Helper
* The options helper.
*
* @var \Mockery\MockInterface|Options_Helper
*/
private $options_helper;

Expand Down
4 changes: 3 additions & 1 deletion tests/unit/indexables/domain/batch-size-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
class Batch_Size_Test extends TestCase {

/**
* @var \Yoast\WP\SEO\Indexables\Domain\Batch_Size
* The instance.
*
* @var Batch_Size
*/
private $instance;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
class Current_Verification_Action_Test extends TestCase {

/**
* @var \Yoast\WP\SEO\Indexables\Domain\Current_Verification_Action
* The instance.
*
* @var Current_Verification_Action
*/
private $instance;

Expand Down
2 changes: 2 additions & 0 deletions tests/unit/indexables/domain/last-batch-count-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
class Last_Batch_Count_Test extends TestCase {

/**
* The instance.
*
* @var \Yoast\WP\SEO\Indexables\Domain\Last_Batch_Count
*/
private $instance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
class Outdated_Post_Indexables_List_Test extends TestCase {

/**
* The instance.
*
* @var \Yoast\WP\SEO\Indexables\Domain\Outdated_Post_Indexables_List
*/
private $instance;
Expand Down
13 changes: 3 additions & 10 deletions tests/unit/indexables/domain/plugin-deactivated-timestamp-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,11 @@
class Plugin_Deactivated_Timestamp_Test extends TestCase {

/**
* @var \Yoast\WP\SEO\Indexables\Domain\Plugin_Deactivated_Timestamp
*/
private $instance;

/**
* The setup function.
* The instance.
*
* @return void
* @var Plugin_Deactivated_Timestamp
*/
protected function setUp(): void {
parent::setUp();
}
private $instance;

/**
* Tests constructor function.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* @group indexables
*
* @coversDefaultClass \Yoast\WP\SEO\Indexables\User_Interface\Verification_No_Timestamp_Cron_Callback_Integration
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded
*/
class Verification_No_Timestamp_Cron_Callback_Integration_Test extends TestCase {

Expand Down

0 comments on commit 5762829

Please sign in to comment.