• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 6892223656

16 Nov 2023 02:35PM UTC coverage: 49.203% (-0.08%) from 49.287%
6892223656

Pull #20470

github

thijsoo
Fix unit tests.
Pull Request #20470: Introduces indexables verification cron

129 of 283 new or added lines in 25 files covered. (45.58%)

652 existing lines in 2 files now uncovered.

13368 of 27169 relevant lines covered (49.2%)

3.92 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/indexables/domain/exceptions/no-outdated-posts-found-exception.php
1
<?php
2

3
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Given it's a very specific case.
4
namespace Yoast\WP\SEO\Indexables\Domain\Exceptions;
5

6
use Exception;
7

8
/**
9
 * The No_Outdated_Posts_Found_Exception exception.
10
 */
11
class No_Outdated_Posts_Found_Exception extends Exception {
12

13
        /**
14
         * Named constructor for create this exception for when the repository finds no outdated posts left.
15
         *
16
         * @return No_Outdated_Posts_Found_Exception The exception.
17
         */
18
        public static function because_no_outdated_posts_queried(): self {
NEW
19
                return new self(
×
NEW
20
                        'No outdated posts found.'
×
21
                );
22
        }
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc