| 1 | <?php |
||
| 3 | class DMSGridFieldAddNewButtonTest extends SapphireTest |
||
|
|
|||
| 4 | { |
||
| 5 | protected static $fixture_file = 'dmstest.yml'; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var DMSGridFieldAddNewButton |
||
| 9 | */ |
||
| 10 | protected $button; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var GridField |
||
| 14 | */ |
||
| 15 | protected $gridField; |
||
| 16 | |||
| 17 | public function setUp() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Test that when no page ID is present then it is not added to the URL for "add document" |
||
| 28 | */ |
||
| 29 | public function testNoPageIdInAddUrlWhenNotProvided() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Test that when a page ID is provided, it is added onto the "add document" link |
||
| 38 | */ |
||
| 39 | public function testPageIdAddedToLinkWhenProvided() |
||
| 47 | } |
||
| 48 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.