Skip to content

Commit 35afd18

Browse files
committed
Test the @since MU format.
1 parent 003a00e commit 35afd18

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/phpunit/HooksTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@ public function testCanGetSince(): void {
107107
self::assertSame( '2.3.0', $since );
108108
}
109109

110+
function testCanGetSinceForMU(): void {
111+
$hooks = $this->getFilters();
112+
$hook = $hooks->find( 'wpmu_blogs_columns' );
113+
114+
self::assertInstanceOf( Hook::class, $hook );
115+
116+
$since = $hook->getDoc()->getSince();
117+
118+
self::assertSame( '3.0.0', $since );
119+
}
120+
110121
/**
111122
* @return array<string, array<int, string>>
112123
* @phpstan-return array{

0 commit comments

Comments
 (0)