diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-11-28 08:36:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-28 08:36:10 +0100 |
commit | 669302e570024c83140ff5c4f4b1489c5a1c66ed (patch) | |
tree | 010182798f5c83193554031753e063a8a0b35ca1 /tests/lib/CapabilitiesManagerTest.php | |
parent | 125be68311a319f2b839e5aa4ea29cd642cd1e00 (diff) | |
parent | e3e782b63df4f1d65c86cb3b204b4bdecf93a6cd (diff) | |
download | nextcloud-server-669302e570024c83140ff5c4f4b1489c5a1c66ed.tar.gz nextcloud-server-669302e570024c83140ff5c4f4b1489c5a1c66ed.zip |
Merge pull request #18064 from nextcloud/feature/php74
Add php7.4 support
Diffstat (limited to 'tests/lib/CapabilitiesManagerTest.php')
-rw-r--r-- | tests/lib/CapabilitiesManagerTest.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/lib/CapabilitiesManagerTest.php b/tests/lib/CapabilitiesManagerTest.php index c967b77130d..e7d519a7493 100644 --- a/tests/lib/CapabilitiesManagerTest.php +++ b/tests/lib/CapabilitiesManagerTest.php @@ -35,7 +35,7 @@ class CapabilitiesManagerTest extends TestCase { /** @var ILogger */ private $logger; - public function setUp() { + protected function setUp(): void { parent::setUp(); $this->logger = $this->getMockBuilder(ILogger::class)->getMock(); $this->manager = new CapabilitiesManager($this->logger); @@ -81,10 +81,11 @@ class CapabilitiesManagerTest extends TestCase { /** * Test that we need something that implents ICapability - * @expectedException \InvalidArgumentException - * @expectedExceptionMessage The given Capability (Test\NoCapability) does not implement the ICapability interface */ public function testNoICapability() { + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage('The given Capability (Test\\NoCapability) does not implement the ICapability interface'); + $this->manager->registerCapability(function() { return new NoCapability(); }); |