Skip to content

Commit 2607345

Browse files
committed
Remove unneeded delay for dependency_support service
1 parent b3c860c commit 2607345

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

src/DependencySupport.php

+3-13
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@
22
/**
33
* Class to determine support for AMP plugin features.
44
*
5-
* @since 2.1.2
6-
*
75
* @package AmpProject\AmpWP
86
*/
97

108
namespace AmpProject\AmpWP;
119

12-
use AmpProject\AmpWP\Infrastructure\Delayed;
1310
use AmpProject\AmpWP\Infrastructure\Service;
1411

1512
/**
1613
* DependencySupport class.
1714
*
1815
* @internal
16+
* @package AmpProject\AmpWP
17+
* @since 2.1.2
1918
*/
20-
class DependencySupport implements Service, Delayed {
19+
class DependencySupport implements Service {
2120

2221
/**
2322
* The minimum version of Gutenberg supported.
@@ -33,15 +32,6 @@ class DependencySupport implements Service, Delayed {
3332
*/
3433
const WP_MIN_VERSION = '5.6';
3534

36-
/**
37-
* Get the action to use for registering the service.
38-
*
39-
* @return string Registration action to use.
40-
*/
41-
public static function get_registration_action() {
42-
return 'plugins_loaded';
43-
}
44-
4535
/**
4636
* Determines whether core or Gutenberg provides minimal support.
4737
*

tests/php/src/DependencySupportTest.php

-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ public function setUp() {
2121

2222
public function test_it_can_be_initialized() {
2323
$this->assertInstanceOf( Service::class, $this->instance );
24-
$this->assertInstanceOf( Delayed::class, $this->instance );
25-
}
26-
27-
/** @covers ::get_registration_action() */
28-
public function test_get_registration_action() {
29-
$this->assertSame( 'plugins_loaded', DependencySupport::get_registration_action() );
3024
}
3125

3226
public function test_has_support() {

0 commit comments

Comments
 (0)