Skip to content

Commit

Permalink
add true covers
Browse files Browse the repository at this point in the history
  • Loading branch information
yurii-github committed Oct 28, 2020
1 parent a9d7e66 commit f1267ae
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/ComposhipsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
use Awobaz\Compoships\Tests\Models\User;
use Awobaz\Compoships\Tests\TestCase\TestCase;

/**
* @covers \Awobaz\Compoships\Compoships
* @covers \Awobaz\Compoships\Database\Query\Builder
* @covers \Awobaz\Compoships\Database\Eloquent\Relations\BelongsTo
* @covers \Awobaz\Compoships\Database\Eloquent\Relations\HasMany
*/
class ComposhipsTest extends TestCase
{
/**
Expand All @@ -35,9 +41,9 @@ public function testSave()
}

/**
* Test the save method on a relationship.
* @covers \Awobaz\Compoships\Database\Eloquent\Relations\HasOne
*/
public function testSaveModelNotUsingCompoships()
public function testSaveModelNotUsingCompoships_onHasOne()
{
Model::unguard();

Expand Down Expand Up @@ -280,10 +286,7 @@ public function testHasWithBelongsToRelation()
$this->assertIsArray($pickup_times);
}

/**
* Test the associate method on a belongsTo relationship.
*/
public function testAssociate()
public function testAssociateOnbelongsTo()
{
Model::unguard();

Expand Down

0 comments on commit f1267ae

Please sign in to comment.