Skip to content

Commit

Permalink
Merge branch 'main' into feature/notice-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheAdams authored Nov 19, 2024
2 parents fbe208c + f05e69a commit 1c2d728
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/unit/Actions/DisplayNoticesInAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@ private function getSimpleNoticeOutput(string $content): string
return "<div class='notice notice-info' data-stellarwp-namespace-notice-id='test_id'>$content</div>";
}

/**
* @unreleased
*/
public function expectNoticeInOutput(string $expected): void
{
$this->expectOutputString($this->getSimpleNoticeOutput($expected));
}

/**
* @unreleased
*/
private function getSimpleNoticeOutput(string $content): string
{
return "<div class='notice notice-info' data-stellarwp-namespace-notice-id='test_id'>$content</div>";
}

/**
* Produces a simple mock with predictable output.
*
Expand Down

0 comments on commit 1c2d728

Please sign in to comment.