diff options
author | Joas Schilling <coding@schilljs.com> | 2018-01-24 18:10:16 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-01-24 18:10:16 +0100 |
commit | 870023365c928e6bc3bd39d0d7f9b4d976dad33e (patch) | |
tree | 74c1438392d2101c154a80d4f4b9d4777c77bd1a /tests/lib/L10N | |
parent | c3424df1f026854ed8adbfdf8d96da7a6562a8dd (diff) | |
download | nextcloud-server-870023365c928e6bc3bd39d0d7f9b4d976dad33e.tar.gz nextcloud-server-870023365c928e6bc3bd39d0d7f9b4d976dad33e.zip |
Fix "Undefined method setExpectedException()"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/L10N')
-rw-r--r-- | tests/lib/L10N/FactoryTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/L10N/FactoryTest.php b/tests/lib/L10N/FactoryTest.php index 4f31784337a..1e5c2ef5421 100644 --- a/tests/lib/L10N/FactoryTest.php +++ b/tests/lib/L10N/FactoryTest.php @@ -392,7 +392,7 @@ class FactoryTest extends TestCase { ->willReturn($header); if ($expected instanceof LanguageNotFoundException) { - $this->setExpectedException(LanguageNotFoundException::class); + $this->expectException(LanguageNotFoundException::class); self::invokePrivate($factory, 'getLanguageFromRequest', [$app]); } else { $this->assertSame($expected, self::invokePrivate($factory, 'getLanguageFromRequest', [$app]), 'Asserting returned language'); |