summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Service/StatusServiceTest.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-12-26 13:09:41 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-12-30 11:21:44 +0100
commit05377d023ef4d43818a4b42039c8143cb0f907e4 (patch)
treec01fc681c42671dad774de7dc7c46524eb9ae015 /tests/Unit/Service/StatusServiceTest.php
parent27bd54058050a70bd1c9ec8cfcdf42d38541f1b0 (diff)
Remove PHPunit integration tests
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Service/StatusServiceTest.php')
-rw-r--r--tests/Unit/Service/StatusServiceTest.php23
1 files changed, 1 insertions, 22 deletions
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))