-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
|
||
namespace Cone\Root\Tests\Fields; | ||
|
||
use Cone\Root\Fields\HasMany; | ||
use Cone\Root\Tests\TestCase; | ||
|
||
class RelationTest extends TestCase | ||
{ | ||
protected HasMany $field; | ||
|
||
public function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->field = new HasMany('User'); | ||
} | ||
|
||
public function test_a_relation_resolves_model_relation(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_resolves_relatable_query(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_can_be_a_subresource(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_can_be_nullable(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_can_be_searchable(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_can_be_sortable(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_displays_relatable(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_gets_relation_value(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_resolves_format(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_resolves_filters(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_resolves_fields(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_a_relation_resolves_actions(): void | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
} |