diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-05-24 13:26:58 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-24 09:34:09 +0100 |
commit | a23cd7b961fc7c0d8d52cf2d914bdee36e2a40bc (patch) | |
tree | 208635ac91b56440923ab0d193cea62510eca708 /tests/Core/Command | |
parent | f867a2d65e825800d6bf1b685659677f6136ac5f (diff) | |
download | nextcloud-server-a23cd7b961fc7c0d8d52cf2d914bdee36e2a40bc.tar.gz nextcloud-server-a23cd7b961fc7c0d8d52cf2d914bdee36e2a40bc.zip |
Fix a bunch of deprecation in the phpunit for core
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'tests/Core/Command')
-rw-r--r-- | tests/Core/Command/Apps/AppsDisableTest.php | 2 | ||||
-rw-r--r-- | tests/Core/Command/Apps/AppsEnableTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Core/Command/Apps/AppsDisableTest.php b/tests/Core/Command/Apps/AppsDisableTest.php index 8995ee2673f..2b276948b04 100644 --- a/tests/Core/Command/Apps/AppsDisableTest.php +++ b/tests/Core/Command/Apps/AppsDisableTest.php @@ -61,7 +61,7 @@ class AppsDisableTest extends TestCase { $this->commandTester->execute($input); - $this->assertRegExp('/' . $pattern . '/', $this->commandTester->getDisplay()); + $this->assertMatchesRegularExpression('/' . $pattern . '/', $this->commandTester->getDisplay()); $this->assertSame($statusCode, $this->commandTester->getStatusCode()); } diff --git a/tests/Core/Command/Apps/AppsEnableTest.php b/tests/Core/Command/Apps/AppsEnableTest.php index 02bf86cfd43..6e577464103 100644 --- a/tests/Core/Command/Apps/AppsEnableTest.php +++ b/tests/Core/Command/Apps/AppsEnableTest.php @@ -66,7 +66,7 @@ class AppsEnableTest extends TestCase { $this->commandTester->execute($input); - $this->assertRegExp('/' . $pattern . '/', $this->commandTester->getDisplay()); + $this->assertMatchesRegularExpression('/' . $pattern . '/', $this->commandTester->getDisplay()); $this->assertSame($statusCode, $this->commandTester->getStatusCode()); } |