diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-09-20 22:03:05 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-09-25 19:18:04 +0200 |
commit | 60ab4941cc7e6ede095e9e4aee3c2bf9a5c3bff6 (patch) | |
tree | baf0b07dd1c545efeb59437af46a99f4d9f69425 /tests/Unit/Migration | |
parent | 2c8b4fa019749113658b9ed8cae211b679e4cbc0 (diff) |
Move to nextcloud config and update phpunit
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Migration')
-rw-r--r-- | tests/Unit/Migration/MigrateStatusFlagsTest.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/Unit/Migration/MigrateStatusFlagsTest.php b/tests/Unit/Migration/MigrateStatusFlagsTest.php index fb915ec94..d71f1a54c 100644 --- a/tests/Unit/Migration/MigrateStatusFlagsTest.php +++ b/tests/Unit/Migration/MigrateStatusFlagsTest.php @@ -22,15 +22,15 @@ class MigrateStatusFlagsTest extends TestCase { /** - * @var IDBConnection|\PHPUnit_Framework_MockObject_MockObject + * @var IDBConnection|\PHPUnit_Framework_MockObject_MockObject */ protected $db; /** - * @var IConfig|\PHPUnit_Framework_MockObject_MockObject + * @var IConfig|\PHPUnit_Framework_MockObject_MockObject */ protected $config; /** - * @var IOutput|\PHPUnit_Framework_MockObject_MockObject + * @var IOutput|\PHPUnit_Framework_MockObject_MockObject */ protected $output; @@ -41,7 +41,7 @@ class MigrateStatusFlagsTest extends TestCase $this->output = $this->createMock(IOutput::class); } - public function testRun() + public function testRun() { $statement = $this->createMock(Statement::class); $statement->expects($this->exactly(1)) @@ -67,11 +67,11 @@ class MigrateStatusFlagsTest extends TestCase $migration->run($this->output); } - /** - * @expectedException \Exception - */ - public function testRunException() + public function testRunException() { + $this->expectException('\Exception'); + $this->expectExceptionMessage('Could not migrate status'); + $statement = $this->createMock(Statement::class); $statement->expects($this->exactly(1)) ->method('execute') @@ -96,7 +96,7 @@ class MigrateStatusFlagsTest extends TestCase $migration->run($this->output); } - public function testRunNewerVersion() + public function testRunNewerVersion() { $this->config->expects($this->exactly(1)) ->method('getAppValue') |