From 05377d023ef4d43818a4b42039c8143cb0f907e4 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Sat, 26 Dec 2020 13:09:41 +0100 Subject: Remove PHPunit integration tests Signed-off-by: Sean Molenaar --- tests/Unit/Service/StatusServiceTest.php | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'tests/Unit/Service/StatusServiceTest.php') diff --git a/tests/Unit/Service/StatusServiceTest.php b/tests/Unit/Service/StatusServiceTest.php index 9f87303ae..dfe3dfd55 100644 --- a/tests/Unit/Service/StatusServiceTest.php +++ b/tests/Unit/Service/StatusServiceTest.php @@ -45,12 +45,9 @@ class StatusServiceTest extends TestCase $this->connection = $this->getMockBuilder(IDBConnection::class) ->disableOriginalConstructor() ->getMock(); - $this->service = new StatusService($this->settings, $this->connection, 'news'); + $this->service = new StatusService($this->settings, $this->connection); } - /** - * @covers \OCA\News\Service\StatusService::getStatus - */ public function testGetStatus() { $this->settings->expects($this->exactly(3)) @@ -81,9 +78,6 @@ class StatusServiceTest extends TestCase $this->assertEquals($expected, $response); } - /** - * @covers \OCA\News\Service\StatusService::getStatus - */ public function testGetStatusNoCorrectCronAjax() { $this->settings->expects($this->exactly(3)) @@ -114,9 +108,6 @@ class StatusServiceTest extends TestCase $this->assertEquals($expected, $response); } - /** - * @covers \OCA\News\Service\StatusService::getStatus - */ public function testGetStatusNoCorrectCronTurnedOff() { $this->settings->expects($this->exactly(3)) @@ -147,9 +138,6 @@ class StatusServiceTest extends TestCase $this->assertEquals($expected, $response); } - /** - * @covers \OCA\News\Service\StatusService::getStatus - */ public function testGetStatusReportsNon4ByteText() { $this->settings->expects($this->exactly(3)) @@ -180,9 +168,6 @@ class StatusServiceTest extends TestCase $this->assertEquals($expected, $response); } - /** - * @covers \OCA\News\Service\StatusService::isCronProperlyConfigured - */ public function testIsProperlyConfiguredNone() { $this->settings->expects($this->exactly(2)) @@ -200,9 +185,6 @@ class StatusServiceTest extends TestCase $this->assertFalse($response); } - /** - * @covers \OCA\News\Service\StatusService::isCronProperlyConfigured - */ public function testIsProperlyConfiguredModeCronNoSystem() { $this->settings->expects($this->exactly(2)) @@ -220,9 +202,6 @@ class StatusServiceTest extends TestCase $this->assertTrue($response); } - /** - * @covers \OCA\News\Service\StatusService::isCronProperlyConfigured - */ public function testIsProperlyConfiguredModeCron() { $this->settings->expects($this->exactly(2)) -- cgit v1.2.3