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

Yoast / wordpress-seo / 7004843404

27 Nov 2023 11:48AM UTC coverage: 49.206% (-0.03%) from 49.232%
7004843404

push

github

web-flow
Merge pull request #20858 from Yoast/improve-copy-in-the-ftc-57

15305 of 31104 relevant lines covered (49.21%)

4.03 hits per line

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

0.0
/src/conditionals/migrations-conditional.php
1
<?php
2

3
namespace Yoast\WP\SEO\Conditionals;
4

5
use Yoast\WP\SEO\Config\Migration_Status;
6

7
/**
8
 * Class for integrations that depend on having all migrations run.
9
 */
10
class Migrations_Conditional implements Conditional {
11

12
        /**
13
         * The migration status.
14
         *
15
         * @var Migration_Status
16
         */
17
        protected $migration_status;
18

19
        /**
20
         * Migrations_Conditional constructor.
21
         *
22
         * @param Migration_Status $migration_status The migration status object.
23
         */
24
        public function __construct( Migration_Status $migration_status ) {
×
25
                $this->migration_status = $migration_status;
×
26
        }
27

28
        /**
29
         * Returns `true` when all database migrations have been run.
30
         *
31
         * @return bool `true` when all database migrations have been run.
32
         */
33
        public function is_met() {
×
34
                return $this->migration_status->is_version( 'free', \WPSEO_VERSION );
×
35
        }
36
}
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