1 | <?php |
||
3 | namespace BringYourOwnIdeas\Maintenance\Tests\Forms; |
||
4 | |||
5 | use BringYourOwnIdeas\Maintenance\Forms\GridFieldLinkButton; |
||
6 | use SilverStripe\Dev\SapphireTest; |
||
7 | |||
8 | class GridFieldLinkButtonTest extends SapphireTest |
||
9 | { |
||
10 | /** |
||
11 | * Not very strong test, as it relies on template output. |
||
12 | */ |
||
13 | public function testCorrectLinkIsContained() |
||
14 | { |
||
15 | $button = new GridFieldLinkButton('https://addons.silverstripe.org', 'Explore Addons', 'test'); |
||
16 | $output = $button->getHTMLFragments(null); |
||
21 |