forked from silverstripe/silverstripe-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX Allow public extension getter methods to work
Accidentally broke this in silverstripe#10670
- Loading branch information
1 parent
2274b3e
commit e52d1c2
Showing
5 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/php/View/ViewableDataTestObject.php → ...ewableDataTest/ViewableDataTestObject.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
tests/php/View/ViewableDataTest/ViewableDataTextExtension.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace SilverStripe\View\Tests\ViewableDataTest; | ||
|
||
use SilverStripe\Core\Extension; | ||
use SilverStripe\Dev\TestOnly; | ||
|
||
class ViewableDataTestExtension extends Extension implements TestOnly | ||
{ | ||
private function privateMethodFromExtension(): string | ||
{ | ||
return 'Private function'; | ||
} | ||
|
||
protected function protectedMethodFromExtension(): string | ||
{ | ||
return 'Protected function'; | ||
} | ||
|
||
public function publicMethodFromExtension(): string | ||
{ | ||
return 'Public function'; | ||
} | ||
} |