Skip to content

Commit

Permalink
Test the @since MU format.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Sep 8, 2024
1 parent 003a00e commit 35afd18
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/phpunit/HooksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,17 @@ public function testCanGetSince(): void {
self::assertSame( '2.3.0', $since );
}

function testCanGetSinceForMU(): void {
$hooks = $this->getFilters();
$hook = $hooks->find( 'wpmu_blogs_columns' );

self::assertInstanceOf( Hook::class, $hook );

$since = $hook->getDoc()->getSince();

self::assertSame( '3.0.0', $since );
}

/**
* @return array<string, array<int, string>>
* @phpstan-return array{
Expand Down

0 comments on commit 35afd18

Please sign in to comment.