Skip to content

Commit

Permalink
UHF-7324: Missing covers annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Sep 16, 2023
1 parent a1edf8b commit 62d6251
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/src/Unit/Plugin/QueueWorker/RevisionQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
/**
* Tests revision queue.
*
* @coversDefaultClass \Drupal\helfi_api_base\Plugin\QueueWorker\RevisionQueue
* @group helfi_api_base
*/
class RevisionQueueTest extends UnitTestCase {
Expand All @@ -37,6 +38,9 @@ private function getSut(RevisionManager $revisionManager) : RevisionQueue {

/**
* Tests that nothing is done for invalid items.
*
* @covers ::create
* @covers ::processItem
*/
public function testQueueInvalidItem() : void {
$revisionManager = $this->prophesize(RevisionManager::class);
Expand All @@ -48,6 +52,9 @@ public function testQueueInvalidItem() : void {

/**
* Make sure nothing is done when an entity does not exist.
*
* @covers ::create
* @covers ::processItem
*/
public function testNoRevisions() : void {
$revisionManager = $this->prophesize(RevisionManager::class);
Expand All @@ -64,7 +71,10 @@ public function testNoRevisions() : void {
}

/**
* Make sure revisions are be processed.
* Make sure revisions are processed.
*
* @covers ::create
* @covers ::processItem
*/
public function testDelete() : void {
$revisionManager = $this->prophesize(RevisionManager::class);
Expand Down

0 comments on commit 62d6251

Please sign in to comment.