diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-27 15:27:18 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-27 15:27:18 +0100 |
commit | 3a7cf40aaa678bea1df143d2982d603b7a334eec (patch) | |
tree | 63c1e3ad7f7f401d14411a4d44c523632906afc9 /apps/files/tests/Activity/ProviderTest.php | |
parent | 0568b012672d650c6b5a49e72c4028dde5463c60 (diff) | |
download | nextcloud-server-3a7cf40aaa678bea1df143d2982d603b7a334eec.tar.gz nextcloud-server-3a7cf40aaa678bea1df143d2982d603b7a334eec.zip |
Mode to modern phpunit
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/tests/Activity/ProviderTest.php')
-rw-r--r-- | apps/files/tests/Activity/ProviderTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/tests/Activity/ProviderTest.php b/apps/files/tests/Activity/ProviderTest.php index da1f014ad05..cb8a2175307 100644 --- a/apps/files/tests/Activity/ProviderTest.php +++ b/apps/files/tests/Activity/ProviderTest.php @@ -55,7 +55,7 @@ class ProviderTest extends TestCase { /** @var IEventMerger|\PHPUnit_Framework_MockObject_MockObject */ protected $eventMerger; - public function setUp(): void { + protected function setUp(): void { parent::setUp(); $this->l10nFactory = $this->createMock(IFactory::class); @@ -136,10 +136,10 @@ class ProviderTest extends TestCase { $this->assertSame('link-' . $id, $result['link']); } - /** - * @expectedException \InvalidArgumentException - */ + public function testGetFileThrows() { + $this->expectException(\InvalidArgumentException::class); + $provider = $this->getProvider(); self::invokePrivate($provider, 'getFile', ['/Foo/Bar.txt', null]); } |