-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Add missing methods to plugin interface
In the original composer2 fix, these were missed. Funnily enough, our test suite didn’t cover even this case so I’ve added a minimal failing test that checks instantiation works.
- Loading branch information
Sam Minnee
authored and
Garion Herman
committed
Oct 26, 2020
1 parent
f29fb9e
commit 6a15370
Showing
2 changed files
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace SilverStripe\VendorPlugin\Tests; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use SilverStripe\VendorPlugin\VendorPlugin; | ||
|
||
class VendorPluginTest extends TestCase | ||
{ | ||
/** | ||
* The simplest possible test, check that the plugin can be instantiated | ||
*/ | ||
public function testInstantiation(): void | ||
{ | ||
new VendorPlugin(); | ||
} | ||
} |